public FieldStorageDefinitionEventSubscriberTrait::onFieldStorageDefinitionEvent(FieldStorageDefinitionEvent $event, $event_name)
Listener method for any field storage definition event.
\Drupal\Core\Field\FieldStorageDefinitionEvent $event: The field storage definition event object.
string $event_name: The event name.
public function onFieldStorageDefinitionEvent(FieldStorageDefinitionEvent $event, $event_name) { switch ($event_name) { case FieldStorageDefinitionEvents::CREATE: $this->onFieldStorageDefinitionCreate($event->getFieldStorageDefinition()); break; case FieldStorageDefinitionEvents::UPDATE: $this->onFieldStorageDefinitionUpdate($event->getFieldStorageDefinition(), $event->getOriginal()); break; case FieldStorageDefinitionEvents::DELETE: $this->onFieldStorageDefinitionDelete($event->getFieldStorageDefinition()); break; } }
© 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::onFieldStorageDefinitionEvent/8.1.x