public function RevisionDiff::getMissing in Replication 8.2
Same name and namespace in other branches
- 8 src/RevisionDiff/RevisionDiff.php \Drupal\replication\RevisionDiff\RevisionDiff::getMissing()
@todo {@link https://www.drupal.org/node/2344005 Implement the possible_ancestors key.}
Overrides RevisionDiffInterface::getMissing
File
- src/
RevisionDiff/ RevisionDiff.php, line 50
Class
Namespace
Drupal\replication\RevisionDiffCode
public function getMissing() {
$missing = [];
foreach ($this
->getRevisionIds() as $uuid => $revs) {
$keys = [];
foreach ($revs as $rev) {
$keys[] = "{$uuid}:{$rev}";
}
$existing = $this->revIndex
->useWorkspace($this->workspaceId)
->getMultiple($keys);
foreach ($revs as $rev) {
if (!isset($existing["{$uuid}:{$rev}"])) {
$missing[$uuid]['missing'][] = $rev;
}
}
}
return $missing;
}