function ViewsBlockBase::getViewExecutable

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/Block/ViewsBlockBase.php \Drupal\views\Plugin\Block\ViewsBlockBase::getViewExecutable()
  2. 8.9.x core/modules/views/src/Plugin/Block/ViewsBlockBase.php \Drupal\views\Plugin\Block\ViewsBlockBase::getViewExecutable()
  3. 11.x core/modules/views/src/Plugin/Block/ViewsBlockBase.php \Drupal\views\Plugin\Block\ViewsBlockBase::getViewExecutable()

Gets the view executable.

@todo revisit after https://www.drupal.org/node/3027653. This method was added in https://www.drupal.org/node/3002608, but should not be necessary once block plugins can determine if they are being previewed.

Return value

\Drupal\views\ViewExecutable The view executable.

File

core/modules/views/src/Plugin/Block/ViewsBlockBase.php, line 232

Class

ViewsBlockBase
Base class for Views block plugins.

Namespace

Drupal\views\Plugin\Block

Code

public function getViewExecutable() {
    return $this->view;
}

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