You are here

public function View::getExecutable in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::getExecutable()
  2. 9 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::getExecutable()

Gets an executable instance for this view.

Return value

\Drupal\views\ViewExecutable A view executable instance.

Overrides ViewEntityInterface::getExecutable

4 calls to View::getExecutable()
View::addCacheMetadata in core/modules/views/src/Entity/View.php
Fills in the cache metadata of this view.
View::calculateDependencies in core/modules/views/src/Entity/View.php
Calculates dependencies and stores them in the dependency property.
View::duplicateDisplayAsType in core/modules/views/src/Entity/View.php
Duplicates an existing display into a new display type.
View::onDependencyRemoval in core/modules/views/src/Entity/View.php
Informs the entity that entities it depends on will be deleted.

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;
}