function NegotiatorBase::getRevision
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Revisions/NegotiatorBase.php \Drupal\jsonapi\Revisions\NegotiatorBase::getRevision()
- 10 core/modules/jsonapi/src/Revisions/NegotiatorBase.php \Drupal\jsonapi\Revisions\NegotiatorBase::getRevision()
- 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\RevisionsCode
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.