function ViewsExposedFilterBlock::create

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

Overrides ContainerDeriverInterface::create

File

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

Class

ViewsExposedFilterBlock
Provides block plugin definitions for all Views exposed filters.

Namespace

Drupal\views\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
    return new static($base_plugin_id, $container->get('entity_type.manager')
        ->getStorage('view'));
}

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