function FinalMissingContentSubscriber::onMissingContent

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Importer/FinalMissingContentSubscriber.php \Drupal\Core\Config\Importer\FinalMissingContentSubscriber::onMissingContent()
  2. 10 core/lib/Drupal/Core/Config/Importer/FinalMissingContentSubscriber.php \Drupal\Core\Config\Importer\FinalMissingContentSubscriber::onMissingContent()
  3. 11.x core/lib/Drupal/Core/Config/Importer/FinalMissingContentSubscriber.php \Drupal\Core\Config\Importer\FinalMissingContentSubscriber::onMissingContent()

Handles the missing content event.

Parameters

\Drupal\Core\Config\Importer\MissingContentEvent $event: The missing content event.

File

core/lib/Drupal/Core/Config/Importer/FinalMissingContentSubscriber.php, line 24

Class

FinalMissingContentSubscriber
Final event subscriber to the missing content event.

Namespace

Drupal\Core\Config\Importer

Code

public function onMissingContent(MissingContentEvent $event) {
    foreach (array_keys($event->getMissingContent()) as $uuid) {
        $event->resolveMissingContent($uuid);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.