Helper methods for EntityTypeListenerInterface.
This allows a class implementing EntityTypeListenerInterface to subscribe and react to entity type events.
Hierarchy
- trait \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
See also
\Symfony\Component\EventDispatcher\EventSubscriberInterface
\Drupal\Core\Entity\EntityTypeListenerInterface
File
- core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php, line 14
Namespace
Drupal\Core\Entity
Members
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 |
Please login to continue.