public function EventSubscriber::onConfigImporterMissingContentTwo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/tests/config_import_test/src/EventSubscriber.php \Drupal\config_import_test\EventSubscriber::onConfigImporterMissingContentTwo()
Handles the missing content event.
Parameters
\Drupal\Core\Config\Importer\MissingContentEvent $event: The missing content event.
File
- core/
modules/ config/ tests/ config_import_test/ src/ EventSubscriber.php, line 79 - Contains \Drupal\config_import_test\EventSubscriber.
Class
- EventSubscriber
- Config import subscriber for config import events.
Namespace
Drupal\config_import_testCode
public function onConfigImporterMissingContentTwo(MissingContentEvent $event) {
if ($this->state
->get('config_import_test.config_import_missing_content', FALSE) && $this->state
->get('config_import_test.config_import_missing_content_two', FALSE) === FALSE) {
$missing = $event
->getMissingContent();
$uuid = key($missing);
$this->state
->set('config_import_test.config_import_missing_content_two', key($missing));
$event
->resolveMissingContent($uuid);
}
}