final class EntityTypeEvents in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityTypeEvents.php \Drupal\Core\Entity\EntityTypeEvents
Contains all events thrown while handling entity types.
Hierarchy
- class \Drupal\Core\Entity\EntityTypeEvents
Expanded class hierarchy of EntityTypeEvents
3 files declare their use of EntityTypeEvents
- EntityDefinitionUpdateTest.php in core/
modules/ system/ src/ Tests/ Entity/ EntityDefinitionUpdateTest.php - Contains \Drupal\system\Tests\Entity\EntityDefinitionUpdateTest.
- EntityTestDefinitionSubscriber.php in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php - Contains \Drupal\entity_test\EntityTestDefinitionSubscriber.
- ViewsEntitySchemaSubscriberIntegrationTest.php in core/
modules/ views/ src/ Tests/ EventSubscriber/ ViewsEntitySchemaSubscriberIntegrationTest.php - Contains \Drupal\views\Tests\EventSubscriber\ViewsEntitySchemaSubscriberIntegrationTest.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeEvents.php, line 13 - Contains \Drupal\Core\Entity\EntityTypeEvents.
Namespace
Drupal\Core\EntityView source
final class EntityTypeEvents {
/**
* The name of the event triggered when a new entity type is created.
*
* This event allows modules to react to a new entity type being created. The
* event listener method receives a \Drupal\Core\Entity\EntityTypeEvent
* instance.
*
* @Event
*
* @see \Drupal\Core\Entity\EntityTypeEvent
* @see \Drupal\Core\Entity\EntityManager::onEntityTypeCreate()
* @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
* @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeCreate()
*
* @var string
*/
const CREATE = 'entity_type.definition.create';
/**
* The name of the event triggered when an existing entity type is updated.
*
* This event allows modules to react whenever an existing entity type is
* updated. The event listener method receives a
* \Drupal\Core\Entity\EntityTypeEvent instance.
*
* @Event
*
* @see \Drupal\Core\Entity\EntityTypeEvent
* @see \Drupal\Core\Entity\EntityManager::onEntityTypeUpdate()
* @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
* @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeUpdate()
*
* @var string
*/
const UPDATE = 'entity_type.definition.update';
/**
* The name of the event triggered when an existing entity type is deleted.
*
* This event allows modules to react whenever an existing entity type is
* deleted. The event listener method receives a
* \Drupal\Core\Entity\EntityTypeEvent instance.
*
* @Event
*
* @see \Drupal\Core\Entity\EntityTypeEvent
* @see \Drupal\Core\Entity\EntityManager::onEntityTypeDelete()
* @see \Drupal\Core\Entity\EntityTypeEventSubscriberTrait
* @see \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::onEntityTypeDelete()
*
* @var string
*/
const DELETE = 'entity_type.definition.delete';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityTypeEvents:: |
constant | The name of the event triggered when a new entity type is created. | ||
EntityTypeEvents:: |
constant | The name of the event triggered when an existing entity type is deleted. | ||
EntityTypeEvents:: |
constant | The name of the event triggered when an existing entity type is updated. |