final class FieldStorageDefinitionEvents in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php \Drupal\Core\Field\FieldStorageDefinitionEvents
- 10 core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php \Drupal\Core\Field\FieldStorageDefinitionEvents
Contains all events thrown while handling field storage definitions.
Hierarchy
- class \Drupal\Core\Field\FieldStorageDefinitionEvents
Expanded class hierarchy of FieldStorageDefinitionEvents
2 files declare their use of FieldStorageDefinitionEvents
- EntityDefinitionUpdateTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php - EntityTestDefinitionSubscriber.php in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestDefinitionSubscriber.php
File
- core/
lib/ Drupal/ Core/ Field/ FieldStorageDefinitionEvents.php, line 8
Namespace
Drupal\Core\FieldView source
final class FieldStorageDefinitionEvents {
/**
* Name of the event triggered for field storage definition creation.
*
* This event allows you to respond to the creation of a new field storage
* definition. The event listener method receives a
* \Drupal\Core\Field\FieldStorageDefinitionEvent instance.
*
* @Event
*
* @see \Drupal\Core\Field\FieldStorageDefinitionEvent
* @see \Drupal\Core\Field\FieldStorageDefinitionListener::onFieldStorageDefinitionCreate
* @see \Drupal\Core\Field\FieldStorageDefinitionEventSubscriberTrait
*
* @var string
*/
const CREATE = 'field_storage.definition.create';
/**
* Name of the event triggered for field storage definition update.
*
* This event allows you to respond anytime a field storage definition is
* updated. The event listener method receives a
* \Drupal\Core\Field\FieldStorageDefinitionEvent instance.
*
* @Event
*
* @see \Drupal\Core\Field\FieldStorageDefinitionEvent
* @see \Drupal\Core\Field\FieldStorageDefinitionListener::onFieldStorageDefinitionUpdate()
* @see \Drupal\Core\Field\FieldStorageDefinitionEventSubscriberTrait
*
* @var string
*/
const UPDATE = 'field_storage.definition.update';
/**
* Name of the event triggered for field storage definition deletion.
*
* This event allows you to respond anytime a field storage definition is
* deleted. The event listener method receives a
* \Drupal\Core\Field\FieldStorageDefinitionEvent instance.
*
* @Event
*
* @see \Drupal\Core\Field\FieldStorageDefinitionEvent
* @see \Drupal\Core\Field\FieldStorageDefinitionListener::onFieldStorageDefinitionDelete()
* @see \Drupal\Core\Field\FieldStorageDefinitionEventSubscriberTrait
*
* @var string
*/
const DELETE = 'field_storage.definition.delete';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldStorageDefinitionEvents:: |
constant | Name of the event triggered for field storage definition creation. | ||
FieldStorageDefinitionEvents:: |
constant | Name of the event triggered for field storage definition deletion. | ||
FieldStorageDefinitionEvents:: |
constant | Name of the event triggered for field storage definition update. |