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

1
2
3
4
5
6
7
8
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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.