function RoleInterface::grantPermissions
Same name and namespace in other branches
- 11.x core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::grantPermissions()
Grants permissions to the role.
Parameters
array $permissions: The permissions to grant.
Return value
$this
File
-
core/
modules/ user/ src/ RoleInterface.php, line 62
Class
- RoleInterface
- Provides an interface defining a user role entity.
Namespace
Drupal\userCode
public function grantPermissions(array $permissions) : static;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.