1. 8.5.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
  2. 8.0.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
  3. 8.1.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
  4. 8.2.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
  5. 8.3.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
  6. 8.4.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
  7. 8.6.x core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php

Namespace

Drupal\Core\Field

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionEvents.php
View source
<?php

namespace Drupal\Core\Field;


/**
 * Contains all events thrown while handling field storage definitions.
 */
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\Entity\EntityManager::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\Entity\EntityManager::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\Entity\EntityManager::onFieldStorageDefinitionDelete()
   * @see \Drupal\Core\Field\FieldStorageDefinitionEventSubscriberTrait
   *
   * @var string
   */
  const DELETE = 'field_storage.definition.delete';

}

Classes

Namesort descending Description
FieldStorageDefinitionEvents Contains all events thrown while handling field storage definitions.