public function ConfigImportSubscriber::onConfigImporterValidate

Validates the configuration to be imported.

Parameters

\Drupal\Core\Config\ConfigImporterEvent $event: The Event to process.

Throws

\Drupal\Core\Config\ConfigNameException

File

drupal/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php, line 28
Contains \Drupal\Core\EventSubscriber\ConfigImportSubscriber.

Class

ConfigImportSubscriber
Config import subscriber for config import events.

Namespace

Drupal\Core\EventSubscriber

Code

public function onConfigImporterValidate(ConfigImporterEvent $event) {
  foreach (array(
    'delete',
    'create',
    'update',
  ) as $op) {
    foreach ($event
      ->getConfigImporter()
      ->getUnprocessed($op) as $name) {
      Config::validateName($name);
    }
  }
}