protected function getHistoryRoute(EntityTypeInterface $entity_type) {
    if ($entity_type->hasLinkTemplate('version-history')) {
      $route = new Route($entity_type->getLinkTemplate('version-history'));
      $route
        ->setDefaults([
          '_title' => "{$entity_type->getLabel()} revisions",
          '_controller' => '\Drupal\openy_upgrade_tool\Controller\OpenyUpgradeLogController::revisionOverview',
        ])
        ->setRequirement('_permission', 'access openy upgrade log revisions')
        ->setOption('_admin_route', TRUE);

      return $route;
    }
  }
protected function getHistoryRoute(EntityTypeInterface $entity_type) {
    if ($entity_type->hasLinkTemplate('version-history')) {
      $route = new Route($entity_type->getLinkTemplate('version-history'));
      $route
        ->setDefaults([
          '_title' => "{$entity_type->getLabel()} revisions",
          '_controller' => '\Drupal\openy_upgrade_tool\Controller\OpenyUpgradeLogController::revisionOverview',
        ])
        ->setRequirement('_permission', 'access openy upgrade log revisions')
        ->setOption('_admin_route', TRUE);

      return $route;
    }
  }
protected function getHistoryRoute ( EntityTypeInterface $ entity_type ) { if ( $ entity_type -> hasLinkTemplate ( 'version-history' ) ) { $ route = new Route ( $ entity_type -> getLinkTemplate ( 'version-history' ) ) ; $ route -> setDefaults ( [ '_title' => "{$entity_type->getLabel()} revisions" , '_controller' => '\Drupal\openy_upgrade_tool\Controller\OpenyUpgradeLogController::revisionOverview' , ] ) -> setRequirement ( '_permission' , 'access openy upgrade log revisions' ) -> setOption ( '_admin_route' , TRUE ) ; return $ route ; } }
Gets the version history route.

@param \Drupal\Core\Entity\EntityTypeInterface $entity_type
The entity type.

@return \Symfony\Component\Routing\Route|null
The generated route, if available.
Gets the version history route .