function NegotiatorBase::getRevisionId
Gets the revision ID.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
string $version_argument: A value used to derive a revision ID for the given entity.
Return value
int The revision ID.
Throws
\Drupal\jsonapi\Revisions\VersionNotFoundException When the revision does not exist.
\Drupal\jsonapi\Revisions\InvalidVersionIdentifierException When the revision ID is not valid.
File
-
core/
modules/ jsonapi/ src/ Revisions/ NegotiatorBase.php, line 52
Class
- NegotiatorBase
- Base implementation for version negotiators.
Namespace
Drupal\jsonapi\RevisionsCode
abstract protected function getRevisionId(EntityInterface $entity, $version_argument);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.