public function GroupRoleInterface::grantPermissions in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/GroupRoleInterface.php \Drupal\group\Entity\GroupRoleInterface::grantPermissions()
Grants multiple permissions to the role.
Parameters
string[] $permissions: The permissions to grant.
Return value
\Drupal\group\Entity\GroupRoleInterface The group role this was called on.
1 method overrides GroupRoleInterface::grantPermissions()
- GroupRole::grantPermissions in src/Entity/ GroupRole.php 
- Grants multiple permissions to the role.
File
- src/Entity/ GroupRoleInterface.php, line 126 
Class
- GroupRoleInterface
- Provides an interface defining a group role entity.
Namespace
Drupal\group\EntityCode
public function grantPermissions($permissions);