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);
Please login to continue.