You are here

interface RevisionTreeIndexInterface in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Index/RevisionTreeIndexInterface.php \Drupal\multiversion\Entity\Index\RevisionTreeIndexInterface

Hierarchy

Expanded class hierarchy of RevisionTreeIndexInterface

All classes that implement RevisionTreeIndexInterface

1 file declares its use of RevisionTreeIndexInterface
MultiversionIndexFactoryTest.php in tests/src/Kernel/MultiversionIndexFactoryTest.php

File

src/Entity/Index/RevisionTreeIndexInterface.php, line 7

Namespace

Drupal\multiversion\Entity\Index
View source
interface RevisionTreeIndexInterface extends IndexInterface {

  /**
   * @param string $uuid
   *
   * @return array
   */
  public function getTree($uuid);

  /**
   * @param string $uuid
   *
   * @return object of graph type
   */
  public function getGraph($uuid);

  /**
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   * @param array $branch
   * @return RevisionTreeIndexInterface
   */
  public function updateTree(ContentEntityInterface $entity, array $branch = []);

  /**
   * @param string $uuid
   *
   * @return string
   */
  public function getDefaultRevision($uuid);

  /**
   * @param string $uuid
   *
   * @return string[]
   */
  public function getDefaultBranch($uuid);

  /**
   * @param string $uuid
   *
   * @return string[]
   */
  public function getOpenRevisions($uuid);

  /**
   * @param string $uuid
   *
   * @return string[]
   */
  public function getConflicts($uuid);

  /**
   * @param array $a
   * @param array $b
   * @return integer
   */
  public static function sortRevisions(array $a, array $b);

  /**
   * @param array $tree
   * @return mixed
   */
  public static function sortTree(array &$tree);

}

Members