W3cubDocs

/Drupal 8

public static function FieldStorageDefinitionEventSubscriberTrait::getFieldStorageDefinitionEvents

public static FieldStorageDefinitionEventSubscriberTrait::getFieldStorageDefinitionEvents()

Returns the subscribed events.

Return value

array An array of subscribed event names.

See also

\Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionEventSubscriberTrait.php, line 24

Class

FieldStorageDefinitionEventSubscriberTrait
Helper methods for FieldStorageDefinitionListenerInterface.

Namespace

Drupal\Core\Field

Code

public static function getFieldStorageDefinitionEvents() {
  $event = array('onFieldStorageDefinitionEvent', 100);
  $events[FieldStorageDefinitionEvents::CREATE][] = $event;
  $events[FieldStorageDefinitionEvents::UPDATE][] = $event;
  $events[FieldStorageDefinitionEvents::DELETE][] = $event;
  return $events;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!FieldStorageDefinitionEventSubscriberTrait.php/function/FieldStorageDefinitionEventSubscriberTrait::getFieldStorageDefinitionEvents/8.1.x