ViewExecutableFactory::get

public ViewExecutableFactory::get(ViewEntityInterface $view)

Instantiates a ViewExecutable class.

Parameters

\Drupal\views\ViewEntityInterface $view: A view entity instance.

Return value

\Drupal\views\ViewExecutable A ViewExecutable instance.

File

core/modules/views/src/ViewExecutableFactory.php, line 70

Class

ViewExecutableFactory
Defines the cache backend factory.

Namespace

Drupal\views

Code

public function get(ViewEntityInterface $view) {
  $view = new ViewExecutable($view, $this->user, $this->viewsData, $this->routeProvider);
  $view->setRequest($this->requestStack->getCurrentRequest());
  return $view;
}
doc_Drupal
2016-10-29 09:54:31
Comments
Leave a Comment

Please login to continue.