public function ViewsBlockBase::getViewExecutable in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/Block/ViewsBlockBase.php \Drupal\views\Plugin\Block\ViewsBlockBase::getViewExecutable()
- 9 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\BlockCode
public function getViewExecutable() {
return $this->view;
}