public static function ContentTypesUpdatedSubscriber::getSubscribedEvents in Allow a content type only once (Only One) 8
File
- modules/
onlyone_admin_toolbar/ src/ EventSubscriber/ ContentTypesUpdatedSubscriber.php, line 34
Class
- ContentTypesUpdatedSubscriber
- Class ContentTypesUpdatedSubscriber.
Namespace
Drupal\onlyone_admin_toolbar\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [];
$events[OnlyOneEvents::CONTENT_TYPES_UPDATED][] = [
'rebuildMenu',
0,
];
return $events;
}