function ViewsExposedForm::__construct
Same name in other branches
- 9 core/modules/views/src/Form/ViewsExposedForm.php \Drupal\views\Form\ViewsExposedForm::__construct()
- 10 core/modules/views/src/Form/ViewsExposedForm.php \Drupal\views\Form\ViewsExposedForm::__construct()
- 11.x core/modules/views/src/Form/ViewsExposedForm.php \Drupal\views\Form\ViewsExposedForm::__construct()
- 11.x core/modules/views/src/Attribute/ViewsExposedForm.php \Drupal\views\Attribute\ViewsExposedForm::__construct()
- 10 core/modules/views/src/Attribute/ViewsExposedForm.php \Drupal\views\Attribute\ViewsExposedForm::__construct()
Constructs a new ViewsExposedForm
Parameters
\Drupal\views\ExposedFormCache $exposed_form_cache: The exposed form cache.
\Drupal\Core\Path\CurrentPathStack $current_path_stack: The current path stack.
File
-
core/
modules/ views/ src/ Form/ ViewsExposedForm.php, line 44
Class
- ViewsExposedForm
- Provides the views exposed form.
Namespace
Drupal\views\FormCode
public function __construct(ExposedFormCache $exposed_form_cache, CurrentPathStack $current_path_stack = NULL) {
$this->exposedFormCache = $exposed_form_cache;
if ($current_path_stack === NULL) {
@trigger_error('The path.current service must be passed to ViewsExposedForm::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/3066604', E_USER_DEPRECATED);
$current_path_stack = \Drupal::service('path.current');
}
$this->currentPathStack = $current_path_stack;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.