public function PermissionEvent::setPermissions in Organic groups 8
Sets multiple permissions.
Parameters
\Drupal\og\PermissionInterface[] $permissions: The permissions to set, keyed by permission name.
Overrides PermissionEventInterface::setPermissions
File
- src/
Event/ PermissionEvent.php, line 148
Class
- PermissionEvent
- Event that is fired when OG permissions are compiled.
Namespace
Drupal\og\EventCode
public function setPermissions(array $permissions) {
foreach ($permissions as $permission) {
$this
->setPermission($permission);
}
}