3 namespace Drupal\content_moderation;
6 * Tracks metadata about revisions across content entities.
8 interface RevisionTrackerInterface {
11 * Sets the latest revision of a given entity.
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.
26 public function setLatestRevision($entity_type_id, $entity_id, $langcode, $revision_id);