/**
* Validates the configuration to be imported.
*
* @param \Drupal\Core\Config\ConfigImporterEvent $event
* The Event to process.
*
* @throws \Drupal\Core\Config\ConfigNameException
*/
public function onConfigImporterValidate(ConfigImporterEvent
$event) { if ($this->state->
get('config_import_test.config_import_validate_fail', FALSE
)) { // Log more than one error to test multiple validation errors.
$event->
getConfigImporter()->
logError('Config import validate error 1.'
);
$event->
getConfigImporter()->
logError('Config import validate error 2.'
);
} } /**
* Handles the missing content event.
*
* @param \Drupal\Core\Config\Importer\MissingContentEvent $event
* The missing content event.
*/
public function onConfigImporterMissingContentOne(MissingContentEvent
$event) {