public static function EntityTypeEventSubscriberTrait::getEntityTypeEvents in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php \Drupal\Core\Entity\EntityTypeEventSubscriberTrait::getEntityTypeEvents()
Gets the subscribed events.
Return value
array An array of subscribed event names.
See also
\Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
2 calls to EntityTypeEventSubscriberTrait::getEntityTypeEvents()
- EntityTestDefinitionSubscriber::getSubscribedEvents in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Returns an array of event names this subscriber wants to listen to.
- ViewsEntitySchemaSubscriber::getSubscribedEvents in core/
modules/ views/ src/ EventSubscriber/ ViewsEntitySchemaSubscriber.php - Returns an array of event names this subscriber wants to listen to.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeEventSubscriberTrait.php, line 29 - Contains \Drupal\Core\Entity\EntityTypeEventSubscriberTrait.
Class
- EntityTypeEventSubscriberTrait
- Helper methods for EntityTypeListenerInterface.
Namespace
Drupal\Core\EntityCode
public static function getEntityTypeEvents() {
$event = array(
'onEntityTypeEvent',
100,
);
$events[EntityTypeEvents::CREATE][] = $event;
$events[EntityTypeEvents::UPDATE][] = $event;
$events[EntityTypeEvents::DELETE][] = $event;
return $events;
}