public function DisplayPluginBase::getSpecialBlocks

Provide the block system with any exposed widget blocks for this display.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 2690
Contains 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\display

Code

public function getSpecialBlocks() {
  $blocks = array();
  if ($this
    ->usesExposedFormInBlock()) {
    $delta = '-exp-' . $this->view->storage
      ->id() . '-' . $this->display['id'];
    $desc = t('Exposed form: @view-@display_id', array(
      '@view' => $this->view->storage
        ->id(),
      '@display_id' => $this->display['id'],
    ));
    $blocks[$delta] = array(
      'info' => $desc,
      'cache' => DRUPAL_NO_CACHE,
    );
  }
  return $blocks;
}