You are here

interface DiffLayoutInterface in Diff 8

Builds a diff layout.

Hierarchy

Expanded class hierarchy of DiffLayoutInterface

All classes that implement DiffLayoutInterface

File

src/DiffLayoutInterface.php, line 12

Namespace

Drupal\diff
View source
interface DiffLayoutInterface extends PluginFormInterface, ConfigurableInterface {

  /**
   * Builds a diff comparison between two revisions.
   *
   * This method is responsible for building the diff comparison between
   * revisions of the same entity. It can build a table, navigation links and
   * headers of a diff comparison.
   *
   * @param \Drupal\Core\Entity\ContentEntityInterface $left_revision
   *   The left revision.
   * @param \Drupal\Core\Entity\ContentEntityInterface $right_revision
   *   The right revision.
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   *   The entity.
   *
   * @return array
   *   The modified build array that the plugin builds.
   */
  public function build(ContentEntityInterface $left_revision, ContentEntityInterface $right_revision, ContentEntityInterface $entity);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DiffLayoutInterface::build public function Builds a diff comparison between two revisions. 3
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18