EntityTypeEventSubscriberTrait

Helper methods for EntityTypeListenerInterface.

This allows a class implementing EntityTypeListenerInterface to subscribe and react to entity type events.

Hierarchy

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
doc_Drupal
2016-10-29 09:08:13
Comments
Leave a Comment

Please login to continue.