You are here

interface ConflictAncestorResolverInterface in Conflict 8

Provides an interface for defining LCA resolver entities.

Hierarchy

Expanded class hierarchy of ConflictAncestorResolverInterface

All classes that implement ConflictAncestorResolverInterface

File

src/ConflictAncestorResolverInterface.php, line 13

Namespace

Drupal\conflict
View source
interface ConflictAncestorResolverInterface {

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

  /**
   * Resolves conflicts between different revisions.
   *
   * @param \Drupal\Core\Entity\RevisionableInterface $revision1
   * @param \Drupal\Core\Entity\RevisionableInterface $revision2
   * @param \Fhaculty\Graph\Graph|NULL $graph
   *
   * @return mixed
   */
  public function resolve(RevisionableInterface $revision1, RevisionableInterface $revision2, Graph $graph = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
ConflictAncestorResolverInterface::applies public function 1
ConflictAncestorResolverInterface::resolve public function Resolves conflicts between different revisions. 1