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 2670
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
      ->get('name') . '-' . $this->display['id'];
    $desc = t('Exposed form: @view-@display_id', array(
      '@view' => $this->view->storage
        ->get('name'),
      '@display_id' => $this->display['id'],
    ));
    $blocks[$delta] = array(
      'info' => $desc,
      'cache' => DRUPAL_NO_CACHE,
    );
  }
  return $blocks;
}