public function Role7::getPerms

8.0.x Role7.php public Role7::getPerms()
7.x Role7.php public Role7::getPerms()
master Role7.php public Role7::getPerms()

Overrides RoleBase::getPerms

1 method overrides Role7::getPerms()
Role8::getPerms in lib/Drush/Role/Role8.php

File

lib/Drush/Role/Role7.php, line 6

Namespace

Drush\Role

Class

Role7

Code

public function getPerms() {
  $perms = user_role_permissions(array($this->rid => $this->name));
  return array_keys($perms[$this->rid]);
}