function FieldStorageCreateCheckSubscriber::getSubscribedEvents

Gets the subscribed events.

Return value

array An array of subscribed event names.

See also

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

File

core/lib/Drupal/Core/Test/EventSubscriber/FieldStorageCreateCheckSubscriber.php, line 57

Class

FieldStorageCreateCheckSubscriber
Response subscriber to field storage events.

Namespace

Drupal\Core\Test\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    return [
        FieldStorageDefinitionEvents::CREATE => [
            'onFieldStorageDefinitionCreateEvent',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.