function NegotiatorBase::getRevision

Same name in other branches
  1. 9 core/modules/jsonapi/src/Revisions/NegotiatorBase.php \Drupal\jsonapi\Revisions\NegotiatorBase::getRevision()
  2. 8.9.x core/modules/jsonapi/src/Revisions/NegotiatorBase.php \Drupal\jsonapi\Revisions\NegotiatorBase::getRevision()
  3. 11.x core/modules/jsonapi/src/Revisions/NegotiatorBase.php \Drupal\jsonapi\Revisions\NegotiatorBase::getRevision()

Overrides VersionNegotiatorInterface::getRevision

File

core/modules/jsonapi/src/Revisions/NegotiatorBase.php, line 57

Class

NegotiatorBase
Base implementation for version negotiators.

Namespace

Drupal\jsonapi\Revisions

Code

public function getRevision(EntityInterface $entity, $version_argument) {
    return $this->loadRevision($entity, $this->getRevisionId($entity, $version_argument));
}

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