You are here

public function TeamRoleInterface::hasPermission in Apigee Edge 8

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 TeamRoleInterface::hasPermission()
TeamRole::hasPermission in modules/apigee_edge_teams/src/Entity/TeamRole.php
Checks if the role has a permission.

File

modules/apigee_edge_teams/src/Entity/TeamRoleInterface.php, line 43

Class

TeamRoleInterface
Provides an interface for defining Team Role entities.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function hasPermission($permission) : bool;