Helper methods for EntityTypeListenerInterface.
This allows a class implementing EntityTypeListenerInterface to subscribe and react to entity type events.
\Symfony\Component\EventDispatcher\EventSubscriberInterface
\Drupal\Core\Entity\EntityTypeListenerInterface
Name | Modifiers | Type | Description |
---|---|---|---|
EntityTypeEventSubscriberTrait::getEntityTypeEvents | public static | function | Gets the subscribed events. |
EntityTypeEventSubscriberTrait::onEntityTypeCreate | public | function | Reacts to the creation of the entity type. Overrides EntityTypeListenerInterface::onEntityTypeCreate |
EntityTypeEventSubscriberTrait::onEntityTypeDelete | public | function | |
EntityTypeEventSubscriberTrait::onEntityTypeEvent | public | function | Listener method for any entity type definition event. |
EntityTypeEventSubscriberTrait::onEntityTypeUpdate | public | function |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeEventSubscriberTrait.php/trait/EntityTypeEventSubscriberTrait/8.1.x