Version 1
[yaffs-website] / web / core / modules / content_moderation / src / RevisionTrackerInterface.php
1 <?php
2
3 namespace Drupal\content_moderation;
4
5 /**
6  * Tracks metadata about revisions across content entities.
7  */
8 interface RevisionTrackerInterface {
9
10   /**
11    * Sets the latest revision of a given entity.
12    *
13    * @param string $entity_type_id
14    *   The machine name of the type of entity.
15    * @param string $entity_id
16    *   The Entity ID in question.
17    * @param string $langcode
18    *   The langcode of the revision we're saving. Each language has its own
19    *   effective tree of entity revisions, so in different languages
20    *   different revisions will be "latest".
21    * @param int $revision_id
22    *   The revision ID that is now the latest revision.
23    *
24    * @return static
25    */
26   public function setLatestRevision($entity_type_id, $entity_id, $langcode, $revision_id);
27
28 }