public function DisplayPluginBase::getSpecialBlocks in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()
Provides the block system with any exposed widget blocks for this display.
Overrides DisplayPluginInterface::getSpecialBlocks
File
- core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 2605
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
public function getSpecialBlocks() {
$blocks = [];
if ($this
->usesExposedFormInBlock()) {
$delta = '-exp-' . $this->view->storage
->id() . '-' . $this->display['id'];
$desc = $this
->t('Exposed form: @view-@display_id', [
'@view' => $this->view->storage
->id(),
'@display_id' => $this->display['id'],
]);
$blocks[$delta] = [
'info' => $desc,
];
}
return $blocks;
}