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; }
Please login to continue.