You are here

public function ViewRevisionsRequest::getCurrentSourceEntity 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::getCurrentSourceEntity()
3 calls to ViewRevisionsRequest::getCurrentSourceEntity()
ViewRevisionsRequest::getCurrentView in modules/views_revisions/src/ViewsRevisionsRequest.php
ViewRevisionsRequest::getViewEntities in modules/views_revisions/src/ViewsRevisionsRequest.php
ViewRevisionsRequest::getViewSubmissionEntities in modules/views_revisions/src/ViewsRevisionsRequest.php

File

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

Class

ViewRevisionsRequest
Handles view requests.

Namespace

Drupal\views_revisions

Code

public function getCurrentSourceEntity($ignored_types = NULL) {

  // TODO: Can we refactor this method away altogether and let all its callers
  // work directly with view source entity manager?
  return $this->viewSourceEntityManager
    ->getSourceEntity(is_null($ignored_types) ? [] : $ignored_types);
}