Newer
Older
Angie Byron
committed
<?php
namespace Drupal\Core\Config;
Alex Pott
committed
use Drupal\Core\StringTranslation\StringTranslationTrait;
Angie Byron
committed
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* Defines a base event listener implementation for config sync validation.
*/
abstract class ConfigImportValidateEventSubscriberBase implements EventSubscriberInterface {
Alex Pott
committed
use StringTranslationTrait;
Angie Byron
committed
/**
* Checks that the configuration synchronization is valid.
*
* @param ConfigImporterEvent $event
* The config import event.
*/
abstract public function onConfigImporterValidate(ConfigImporterEvent $event);
/**
* {@inheritdoc}
*/
static function getSubscribedEvents() {
$events[ConfigEvents::IMPORT_VALIDATE][] = array('onConfigImporterValidate', 20);
return $events;
}
}