You are here

constant VersionByRel::LATEST_VERSION in JSON:API 8.2

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

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';