public function UpdateUtilsInterface::getPreviousRevision in Scheduled Updates 8
Get the directly previous revision.
$entity->original will not ALWAYS be the previous revision.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity:
Return value
\Drupal\Core\Entity\EntityInterface|null
1 method overrides UpdateUtilsInterface::getPreviousRevision()
- UpdateUtils::getPreviousRevision in src/
UpdateUtils.php - Get the directly previous revision.
File
- src/
UpdateUtilsInterface.php, line 105
Class
- UpdateUtilsInterface
- Service to determine information about Scheduled Update Types
Namespace
Drupal\scheduled_updatesCode
public function getPreviousRevision(ContentEntityInterface $entity);