You are here

public function DisplayPluginBase::getSpecialBlocks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::getSpecialBlocks()

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

Overrides DisplayPluginInterface::getSpecialBlocks

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2513
Contains \Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
Base class for views display plugins.

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