You are here

public function ViewRevisionsRequest::getCurrentViewSubmission in Config Entity Revisions 1.x

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

File

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

Class

ViewRevisionsRequest
Handles view requests.

Namespace

Drupal\views_revisions

Code

public function getCurrentViewSubmission() {
  $view_submission = $this->routeMatch
    ->getParameter('view_submission');
  if (is_string($view_submission)) {
    $view_submission = $this->entityTypeManager
      ->getStorage('view_submission')
      ->load($view_submission);
  }
  return $view_submission;
}