function View::getExecutable

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::getExecutable()
  2. 10 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::getExecutable()
  3. 8.9.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.