static function EventSubscriber::getSubscribedEvents in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/event-dispatcher/Tests/Debug/TraceableEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\Debug\EventSubscriber::getSubscribedEvents()
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/EventSubscriber.php \Doctrine\Common\EventSubscriber::getSubscribedEvents()
- 8.0 core/modules/config/tests/config_import_test/src/EventSubscriber.php \Drupal\config_import_test\EventSubscriber::getSubscribedEvents()
- 8.0 core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php \Drupal\config_collection_install_test\EventSubscriber::getSubscribedEvents()
- 8.0 core/modules/config/tests/config_events_test/src/EventSubscriber.php \Drupal\config_events_test\EventSubscriber::getSubscribedEvents()
Same name and namespace in other branches
- 8 core/modules/config/tests/config_import_test/src/EventSubscriber.php \Drupal\config_import_test\EventSubscriber::getSubscribedEvents()
Registers the methods in this class that should be listeners.
Return value
array An array of event listener definitions.
Overrides EventSubscriberInterface::getSubscribedEvents
File
- core/
modules/ config/ tests/ config_import_test/ src/ EventSubscriber.php, line 139 - Contains \Drupal\config_import_test\EventSubscriber.
Class
- EventSubscriber
- Config import subscriber for config import events.
Namespace
Drupal\config_import_testCode
static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = array(
'onConfigSave',
40,
);
$events[ConfigEvents::DELETE][] = array(
'onConfigDelete',
40,
);
$events[ConfigEvents::IMPORT_VALIDATE] = array(
'onConfigImporterValidate',
);
$events[ConfigEvents::IMPORT_MISSING_CONTENT] = array(
array(
'onConfigImporterMissingContentOne',
),
array(
'onConfigImporterMissingContentTwo',
-100,
),
);
return $events;
}