Drupal 8  8.0.2
EntityTypeListener Class Reference
Inheritance diagram for EntityTypeListener:

Public Member Functions

 __construct (EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EventDispatcherInterface $event_dispatcher, EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository)
 
 onEntityTypeCreate (EntityTypeInterface $entity_type)
 
 onEntityTypeUpdate (EntityTypeInterface $entity_type, EntityTypeInterface $original)
 
 onEntityTypeDelete (EntityTypeInterface $entity_type)
 

Protected Attributes

 $entityTypeManager
 
 $entityFieldManager
 
 $eventDispatcher
 
 $entityLastInstalledSchemaRepository
 

Detailed Description

Reacts to entity type CRUD on behalf of the Entity system.

See Also

Constructor & Destructor Documentation

__construct ( EntityTypeManagerInterface  $entity_type_manager,
EntityFieldManagerInterface  $entity_field_manager,
EventDispatcherInterface  $event_dispatcher,
EntityLastInstalledSchemaRepositoryInterface  $entity_last_installed_schema_repository 
)

Constructs a new EntityTypeListener.

Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface$entity_type_managerThe entity type manager.
\Drupal\Core\Entity\EntityFieldManagerInterface$entity_field_managerThe entity field manager.
\Symfony\Component\EventDispatcher\EventDispatcherInterface$event_dispatcherThe event dispatcher.
\Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface$entity_last_installed_schema_repositoryThe entity last installed schema repository.

References Drupal\entityTypeManager().

Here is the call graph for this function:

Member Function Documentation

onEntityTypeCreate ( EntityTypeInterface  $entity_type)

{Reacts to the creation of the entity type.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type being created.
}

Implements EntityTypeListenerInterface.

References Drupal\entityTypeManager(), EntityTypeInterface\id(), and EntityTypeInterface\isSubclassOf().

Here is the call graph for this function:

onEntityTypeDelete ( EntityTypeInterface  $entity_type)

{Reacts to the deletion of the entity type.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type being deleted.
}

Implements EntityTypeListenerInterface.

References Drupal\entityTypeManager(), and EntityTypeInterface\id().

Here is the call graph for this function:

onEntityTypeUpdate ( EntityTypeInterface  $entity_type,
EntityTypeInterface  $original 
)

{Reacts to the update of the entity type.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe updated entity type definition.
\Drupal\Core\Entity\EntityTypeInterface$originalThe original entity type definition.
}

Implements EntityTypeListenerInterface.

References Drupal\entityTypeManager(), and EntityTypeInterface\id().

Here is the call graph for this function:


The documentation for this class was generated from the following file: