RoleInterface::grantPermission

public RoleInterface::grantPermission($permission)

Grant permissions to the role.

Parameters

string $permission: The permission to grant.

Return value

$this

File

core/modules/user/src/RoleInterface.php, line 52

Class

RoleInterface
Provides an interface defining a user role entity.

Namespace

Drupal\user

Code

public function grantPermission($permission);
doc_Drupal
2016-10-29 09:38:51
Comments
Leave a Comment

Please login to continue.