Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\Core\Config; use Drupal\Core\StringTranslation\StringTranslationTrait; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Defines a base event listener implementation for config sync validation. */ abstract class ConfigImportValidateEventSubscriberBase implements EventSubscriberInterface { use StringTranslationTrait; /** * Checks that the configuration synchronization is valid. * * @param ConfigImporterEvent $event * The config import event. */ abstract public function onConfigImporterValidate(ConfigImporterEvent $event); /** * {@inheritdoc} */ public static function getSubscribedEvents() { $events[ConfigEvents::IMPORT_VALIDATE][] = ['onConfigImporterValidate', 20]; return $events; } }