public function EventSubscriber::onConfigImporterMissingContentTwo in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config/tests/config_import_test/src/EventSubscriber.php \Drupal\config_import_test\EventSubscriber::onConfigImporterMissingContentTwo()
- 9 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 74
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);
}
}