Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DisplayPluginBase.php

function DisplayPluginBase::getSpecialBlocks

Overrides DisplayPluginInterface::getSpecialBlocks

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2643

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal