You are here

public function GroupPermission::getApplicableRoles in Organic groups 8

Returns the roles to which this permission can be applied.

For example, the 'subscribe' permission only applies to non-members.

Return value

array An array of roles to which this permission applies. If empty, the permission applies to all roles.

File

src/GroupPermission.php, line 34

Class

GroupPermission
A group level permission.

Namespace

Drupal\og

Code

public function getApplicableRoles() {
  return $this
    ->get('roles');
}