VersionByRel::LATEST_VERSION

Same name in other branches
  1. 9 core/modules/jsonapi/src/Revisions/VersionByRel.php \Drupal\jsonapi\Revisions\VersionByRel::LATEST_VERSION
  2. 10 core/modules/jsonapi/src/Revisions/VersionByRel.php \Drupal\jsonapi\Revisions\VersionByRel::LATEST_VERSION
  3. 11.x 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';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.