function DisplayPluginBase::getSpecialBlocks
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()
- 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()
- 10 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()
Overrides DisplayPluginInterface::getSpecialBlocks
File
-
core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 2643
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.