function VersionHistoryController::__invoke
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php \Drupal\Core\Entity\Controller\VersionHistoryController::__invoke()
Generates an overview table of revisions for an entity.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match.
Return value
array A render array.
File
-
core/
lib/ Drupal/ Core/ Entity/ Controller/ VersionHistoryController.php, line 73
Class
- VersionHistoryController
- Provides a controller showing revision history for an entity.
Namespace
Drupal\Core\Entity\ControllerCode
public function __invoke(RouteMatchInterface $routeMatch) : array {
$entityTypeId = $routeMatch->getRouteObject()
->getOption('entity_type_id');
$entity = $routeMatch->getParameter($entityTypeId);
return $this->revisionOverview($entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.