View::getExecutable

public View::getExecutable()

Gets an executable instance for this view.

Return value

\Drupal\views\ViewExecutable A view executable instance.

Overrides ViewEntityInterface::getExecutable

File

core/modules/views/src/Entity/View.php, line 120

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public function getExecutable() {
  // Ensure that an executable View is available.
  if (!isset($this->executable)) {
    $this->executable = Views::executableFactory()->get($this);
  }

  return $this->executable;
}
doc_Drupal
2016-10-29 09:53:40
Comments
Leave a Comment

Please login to continue.