You are here

public function ViewsRevisionsController::revisionShowTitle in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x modules/views_revisions/src/Controller/ViewsRevisionsController.php \Drupal\views_revisions\Controller\ViewsRevisionsController::revisionShowTitle()

Generates a title for the revision.

This function is needed because the $Views parameter needs to match the route but the parent's parameter is named $configEntity.

@inheritdoc

Overrides ConfigEntityRevisionsControllerInterface::revisionShowTitle

1 string reference to 'ViewsRevisionsController::revisionShowTitle'
views_revisions.routing.yml in modules/views_revisions/views_revisions.routing.yml
modules/views_revisions/views_revisions.routing.yml

File

modules/views_revisions/src/Controller/ViewsRevisionsController.php, line 25

Class

ViewsRevisionsController
Controller to make library functions available to various consumers.

Namespace

Drupal\views_revisions\Controller

Code

public function revisionShowTitle(ConfigEntityInterface $view) {
  return '"' . $view
    ->get('title') . '" Views, revision ' . $view
    ->getRevisionId();
}