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;
}
doc_Drupal
2016-10-29 09:12:42
Comments
Leave a Comment

Please login to continue.