You are here

public function ManagedRolePermissionsManagerInterface::isPermissionInRole in farmOS 2.x

Checks if the role has a specified permission.

Parameters

string $permission: The permission string to check.

\Drupal\user\RoleInterface $role: The Role to check.

Return value

bool If the role has the permission.

1 method overrides ManagedRolePermissionsManagerInterface::isPermissionInRole()
ManagedRolePermissionsManager::isPermissionInRole in modules/core/role/src/ManagedRolePermissionsManager.php
Checks if the role has a specified permission.

File

modules/core/role/src/ManagedRolePermissionsManagerInterface.php, line 44

Class

ManagedRolePermissionsManagerInterface
Interface for the ManagedRolePermissionsManager.

Namespace

Drupal\farm_role

Code

public function isPermissionInRole($permission, RoleInterface $role);