function MissingContentEvent::resolveMissingContent

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

Resolves the missing content by removing it from the list.

Parameters

string $uuid: The UUID of the content entity to mark resolved.

Return value

$this The MissingContentEvent object.

File

core/lib/Drupal/Core/Config/Importer/MissingContentEvent.php, line 52

Class

MissingContentEvent
Wraps a configuration event for event listeners.

Namespace

Drupal\Core\Config\Importer

Code

public function resolveMissingContent($uuid) {
    if (isset($this->missingContent[$uuid])) {
        unset($this->missingContent[$uuid]);
    }
    return $this;
}

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