EntityTypeEventSubscriberTrait
trait EntityTypeEventSubscriberTrait (View source)
Helper methods for EntityTypeListenerInterface.
This allows a class implementing EntityTypeListenerInterface to subscribe and react to entity type events.
Methods
static array
getEntityTypeEvents()
Gets the subscribed events.
onEntityTypeEvent(EntityTypeEvent $event, string $event_name)
Listener method for any entity type definition event.
onFieldableEntityTypeCreate(EntityTypeInterface $entity_type, array $field_storage_definitions)
{@inheritdoc}
onFieldableEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, array $sandbox = NULL)
{@inheritdoc}
Details
static array
getEntityTypeEvents()
Gets the subscribed events.
onEntityTypeEvent(EntityTypeEvent $event, string $event_name)
Listener method for any entity type definition event.
onEntityTypeCreate(EntityTypeInterface $entity_type)
{@inheritdoc}
onFieldableEntityTypeCreate(EntityTypeInterface $entity_type, array $field_storage_definitions)
{@inheritdoc}
onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original)
{@inheritdoc}
onFieldableEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, array $sandbox = NULL)
{@inheritdoc}
onEntityTypeDelete(EntityTypeInterface $entity_type)
{@inheritdoc}