ViewRevisionsController.php in Config Entity Revisions 8.2
Namespace
Drupal\view_revisions\ControllerFile
modules/view_revisions/src/Controller/ViewRevisionsController.phpView source
<?php
namespace Drupal\view_revisions\Controller;
use Drupal\config_entity_revisions\ConfigEntityRevisionsControllerBase;
use Drupal\config_entity_revisions\ConfigEntityRevisionsControllerInterface;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Controller to make library functions available to various consumers.
*/
class ViewRevisionsController extends ConfigEntityRevisionsControllerBase implements ConfigEntityRevisionsControllerInterface {
/**
* 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
*/
public function revisionShowTitle(ConfigEntityInterface $view) {
return '"' . $view
->label() . '" view, revision ' . $view
->getRevisionId();
}
}
Classes
Name![]() |
Description |
---|---|
ViewRevisionsController | Controller to make library functions available to various consumers. |