function DisplayPluginBase::getSpecialBlocks

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()
  2. 10 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()
  3. 11.x 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 2609

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

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.