You are here

public function ViewRevisionsRequest::getViewEntities in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x modules/views_revisions/src/ViewsRevisionsRequest.php \Drupal\views_revisions\ViewRevisionsRequest::getViewEntities()

File

modules/views_revisions/src/ViewsRevisionsRequest.php, line 206

Class

ViewRevisionsRequest
Handles view requests.

Namespace

Drupal\views_revisions

Code

public function getViewEntities() {
  $view = $this
    ->getCurrentView();
  $source_entity = $this
    ->getCurrentSourceEntity('view');
  return [
    $view,
    $source_entity,
  ];
}