You are here

public function GroupRoleInterface::hasPermission in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/GroupRoleInterface.php \Drupal\group\Entity\GroupRoleInterface::hasPermission()

Checks if the role has a permission.

Parameters

string $permission: The permission to check for.

Return value

bool TRUE if the role has the permission, FALSE if not.

1 method overrides GroupRoleInterface::hasPermission()
GroupRole::hasPermission in src/Entity/GroupRole.php
Checks if the role has a permission.

File

src/Entity/GroupRoleInterface.php, line 104

Class

GroupRoleInterface
Provides an interface defining a group role entity.

Namespace

Drupal\group\Entity

Code

public function hasPermission($permission);