public static function OgEventSubscriber::getSubscribedEvents in Organic groups 8
File
- src/
EventSubscriber/ OgEventSubscriber.php, line 80
Class
- OgEventSubscriber
- Event subscribers for Organic Groups.
Namespace
Drupal\og\EventSubscriberCode
public static function getSubscribedEvents() {
return [
PermissionEventInterface::EVENT_NAME => [
// Provide a higher priority for the generic event subscriber so that it
// can run first and set default values for all supported entity types,
// which can then be overridden by other subscribers that set module
// specific permissions.
[
'provideDefaultOgPermissions',
10,
],
[
'provideDefaultNodePermissions',
],
],
DefaultRoleEventInterface::EVENT_NAME => [
[
'provideDefaultRoles',
],
],
OgAdminRoutesEventInterface::EVENT_NAME => [
[
'provideOgAdminRoutes',
],
],
GroupContentEntityOperationAccessEventInterface::EVENT_NAME => [
[
'checkGroupContentEntityOperationAccess',
],
],
];
}