interface DiffLayoutInterface in Diff 8
Builds a diff layout.
Hierarchy
- interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\ConfigurableInterface
- interface \Drupal\diff\DiffLayoutInterface
Expanded class hierarchy of DiffLayoutInterface
All classes that implement DiffLayoutInterface
File
- src/
DiffLayoutInterface.php, line 12
Namespace
Drupal\diffView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DiffLayoutInterface:: |
public | function | Builds a diff comparison between two revisions. | 3 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |