You are here

public function RevisionOverviewController::revisionOverviewController in Entity API 8

Same name and namespace in other branches
  1. 8.0 src/Controller/RevisionOverviewController.php \Drupal\entity\Controller\RevisionOverviewController::revisionOverviewController()

Generates an overview table of older revisions of an entity.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

Return value

array A render array.

File

src/Controller/RevisionOverviewController.php, line 98

Class

RevisionOverviewController
Provides a controller which shows the revision history.

Namespace

Drupal\entity\Controller

Code

public function revisionOverviewController(RouteMatchInterface $route_match) {
  return $this
    ->revisionOverview($route_match
    ->getParameter($route_match
    ->getRouteObject()
    ->getOption('entity_type_id')));
}