You are here

constant VersionByRel::LATEST_VERSION in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Revisions/VersionByRel.php \Drupal\jsonapi\Revisions\VersionByRel::LATEST_VERSION

Version argument which loads the revision known to be the "latest version".

In Drupal terms, the "latest version" is the latest "default" revision. It may or may not have later revisions after it, as long as none of them are "default" revisions. This revision is the latest version because it is the last revision where work was considered finished. Typically, this means that it is the most recent "published" revision.

File

core/modules/jsonapi/src/Revisions/VersionByRel.php, line 42

Class

VersionByRel
Revision ID implementation for the default or latest revisions.

Namespace

Drupal\jsonapi\Revisions

Code

const LATEST_VERSION = 'latest-version';