You are here

public static function ViewRevisionsFormAlter::getViewFormRoutes in Config Entity Revisions 8.2

ViewRevisions routes that view the entity.

Return value

array ViewRevisions routes that view the entity.

Overrides ConfigEntityRevisionsFormAlterBase::getViewFormRoutes

1 call to ViewRevisionsFormAlter::getViewFormRoutes()
ViewRevisionsFormAlter::getRevisionRoutes in modules/view_revisions/src/ViewRevisionsFormAlter.php
Additional routes (to $add_edit_form_routes) that need a revision id.

File

modules/view_revisions/src/ViewRevisionsFormAlter.php, line 79

Class

ViewRevisionsFormAlter
Class ViewRevisionsFormAlter.

Namespace

Drupal\view_revisions

Code

public static function getViewFormRoutes() {
  return [
    'entity.view.edit_display_form',
    'entity.view.preview_form',
  ];
}