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
1 2 3 4 5 6 7 | 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.