public function RevisionTrackerInterface::setLatestRevision in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/RevisionTrackerInterface.php \Drupal\workbench_moderation\RevisionTrackerInterface::setLatestRevision()
Sets the latest revision of a given entity.
Parameters
string $entity_type: The machine name of the type of entity.
string $entity_id: The Entity ID in question.
string $langcode: The langcode of the revision we're saving. Each language has its own effective tree of entity revisions, so in different languages different revisions will be "latest".
string $revision_id: The revision ID that is now the latest revision.
Return value
static
1 method overrides RevisionTrackerInterface::setLatestRevision()
- RevisionTracker::setLatestRevision in src/
RevisionTracker.php - Sets the latest revision of a given entity.
File
- src/
RevisionTrackerInterface.php, line 26
Class
- RevisionTrackerInterface
- Tracks metadata about revisions across content entities.
Namespace
Drupal\workbench_moderationCode
public function setLatestRevision($entity_type, $entity_id, $langcode, $revision_id);