function ViewsExposedFilterBlock::__construct

Same name in other branches
  1. 9 core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php \Drupal\views\Plugin\Derivative\ViewsExposedFilterBlock::__construct()
  2. 8.9.x core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php \Drupal\views\Plugin\Derivative\ViewsExposedFilterBlock::__construct()
  3. 10 core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php \Drupal\views\Plugin\Derivative\ViewsExposedFilterBlock::__construct()

Constructs a ViewsExposedFilterBlock object.

Parameters

string $base_plugin_id: The base plugin ID.

\Drupal\Core\Entity\EntityStorageInterface $view_storage: The entity storage to load views.

File

core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php, line 48

Class

ViewsExposedFilterBlock
Provides block plugin definitions for all Views exposed filters.

Namespace

Drupal\views\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityStorageInterface $view_storage) {
    $this->basePluginId = $base_plugin_id;
    $this->viewStorage = $view_storage;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.