entity_hierarchy-8.x-2.24/src/Plugin/views/argument/HierarchyIsParentOfEntityRevision.php
src/Plugin/views/argument/HierarchyIsParentOfEntityRevision.php
<?php namespace Drupal\entity_hierarchy\Plugin\views\argument; /** * Argument to limit to parent of a revision. * * @ingroup views_argument_handlers * * @ViewsArgument("entity_hierarchy_argument_is_parent_of_entity_revision") */ class HierarchyIsParentOfEntityRevision extends HierarchyIsParentOfEntity { /** * {@inheritdoc} */ protected function loadEntity() { /** @var \Drupal\Core\Entity\RevisionableStorageInterface $storage */ $storage = $this->entityTypeManager->getStorage($this->getEntityType()); return $storage->loadRevision($this->argument) ?: $storage->load($this->argument); } }