FieldStorageDefinitionEvents.php 1.87 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
<?php

namespace Drupal\Core\Field;

/**
 * Contains all events thrown while handling field storage definitions.
 */
final class FieldStorageDefinitionEvents {

  /**
11 12 13 14 15 16 17 18 19 20 21
   * 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
22 23 24 25 26 27
   *
   * @var string
   */
  const CREATE = 'field_storage.definition.create';

  /**
28 29 30 31 32 33 34 35 36 37 38
   * 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
39 40 41 42 43 44
   *
   * @var string
   */
  const UPDATE = 'field_storage.definition.update';

  /**
45 46 47 48 49 50 51 52 53 54 55
   * 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
56 57 58 59 60 61
   *
   * @var string
   */
  const DELETE = 'field_storage.definition.delete';

}