You are here

public function RevisionTreeIndex::getConflicts in Multiversion 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Index/RevisionTreeIndex.php \Drupal\multiversion\Entity\Index\RevisionTreeIndex::getConflicts()

Parameters

string $uuid:

Return value

string[]

Overrides RevisionTreeIndexInterface::getConflicts

File

src/Entity/Index/RevisionTreeIndex.php, line 205

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

public function getConflicts($uuid) {
  $revs = [];
  $values = $this
    ->buildTree($uuid);
  foreach ($values['conflicts'] as $rev => $element) {
    $revs[$rev] = $element['#rev_info']['status'];
  }
  return $revs;
}