You are here

interface ConflictResolverInterface in Conflict 8

Hierarchy

Expanded class hierarchy of ConflictResolverInterface

All classes that implement ConflictResolverInterface

File

src/ConflictResolverInterface.php, line 7

Namespace

Drupal\conflict
View source
interface ConflictResolverInterface {

  /**
   * @return bool
   *  TRUE if condition defined in services applies on it else FALSE.
   */
  public function applies();

  /**
   * Merges three revisons.
   *
   * @param \Drupal\Core\Entity\RevisionableInterface $revision1
   * @param \Drupal\Core\Entity\RevisionableInterface $revision2
   * @param \Drupal\Core\Entity\RevisionableInterface $revision3
   *
   * @return mixed
   *   Last created revision's Id.
   */
  public function merge(RevisionableInterface $revision1, RevisionableInterface $revision2, RevisionableInterface $revision3);

}

Members