public function DisplayPluginBase::getSpecialBlocks in Views (for Drupal 7) 8.3
Provide the block system with any exposed widget blocks for this display.
File
- lib/
Drupal/ views/ Plugin/ views/ display/ DisplayPluginBase.php, line 2645 - Definition of Drupal\views\Plugin\views\display\DisplayPluginBase.
Class
- DisplayPluginBase
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Namespace
Drupal\views\Plugin\views\displayCode
public function getSpecialBlocks() {
$blocks = array();
if ($this
->usesExposedFormInBlock()) {
$delta = '-exp-' . $this->view->storage->name . '-' . $this->display['id'];
$desc = t('Exposed form: @view-@display_id', array(
'@view' => $this->view->storage->name,
'@display_id' => $this->display['id'],
));
$blocks[$delta] = array(
'info' => $desc,
'cache' => DRUPAL_NO_CACHE,
);
}
return $blocks;
}