You are here

public function ConflictManager::resolveSimpleMerge in Conflict 8

Parameters

\Drupal\Core\Entity\RevisionableInterface $revision1:

\Drupal\Core\Entity\RevisionableInterface $revision2:

\Drupal\Core\Entity\RevisionableInterface $revision3:

Return value

mixed

File

src/ConflictManager.php, line 25

Class

ConflictManager

Namespace

Drupal\conflict

Code

public function resolveSimpleMerge(RevisionableInterface $revision1, RevisionableInterface $revision2, RevisionableInterface $revision3) {
  foreach ($this->resolvers as $resolver) {
    if ($resolver
      ->applies()) {
      return $resolver
        ->merge($revision1, $revision2, $revision3);
    }
  }
}