class EntityTypeEvent extends GenericEvent (View source)

Defines a base class for all entity type events.

Properties

protected EntityTypeInterface $entityType

The entity type.

protected EntityTypeInterface $original

The original entity type.

Methods

__construct(EntityTypeInterface $entity_type, EntityTypeInterface $original = NULL)

Constructs a new EntityTypeEvent.

getEntityType()

The entity type the event refers to.

getOriginal()

The original entity type.

Details

__construct(EntityTypeInterface $entity_type, EntityTypeInterface $original = NULL)

Constructs a new EntityTypeEvent.

Parameters

EntityTypeInterface $entity_type

The field storage definition.

EntityTypeInterface $original

(optional) The original entity type. This should be passed only when updating the entity type.

EntityTypeInterface getEntityType()

The entity type the event refers to.

Return Value

EntityTypeInterface

EntityTypeInterface getOriginal()

The original entity type.

Return Value

EntityTypeInterface