interface RevisionTrackerInterface in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/RevisionTrackerInterface.php \Drupal\workbench_moderation\RevisionTrackerInterface
Tracks metadata about revisions across content entities.
Hierarchy
- interface \Drupal\workbench_moderation\RevisionTrackerInterface
Expanded class hierarchy of RevisionTrackerInterface
All classes that implement RevisionTrackerInterface
File
- src/
RevisionTrackerInterface.php, line 8
Namespace
Drupal\workbench_moderationView source
interface RevisionTrackerInterface {
/**
* Sets the latest revision of a given entity.
*
* @param string $entity_type
* The machine name of the type of entity.
* @param string $entity_id
* The Entity ID in question.
* @param 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".
* @param string $revision_id
* The revision ID that is now the latest revision.
*
* @return static
*/
public function setLatestRevision($entity_type, $entity_id, $langcode, $revision_id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RevisionTrackerInterface:: |
public | function | Sets the latest revision of a given entity. | 1 |