You are here

class SimpleMergeResolver in Conflict 8

Hierarchy

Expanded class hierarchy of SimpleMergeResolver

1 string reference to 'SimpleMergeResolver'
conflict.services.yml in ./conflict.services.yml
conflict.services.yml
1 service uses SimpleMergeResolver
conflict.simplemerge_resolver in ./conflict.services.yml
Drupal\conflict\SimpleMergeResolver

File

src/SimpleMergeResolver.php, line 7

Namespace

Drupal\conflict
View source
class SimpleMergeResolver implements ConflictResolverInterface {

  /**
   * {@inheritdoc}
   */
  public function applies() {
    return TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function merge(RevisionableInterface $revision1, RevisionableInterface $revision2, RevisionableInterface $revision3) {
    $revid1 = $revision1
      ->getRevisionId();
    $revid2 = $revision2
      ->getRevisionId();
    $revid3 = $revision3
      ->getRevisionId();
    return max($revid1, $revid2, $revid3);
  }

}

Members