function InputRequired::__construct
Same name and namespace in other branches
- main core/modules/views/src/Plugin/views/exposed_form/InputRequired.php \Drupal\views\Plugin\views\exposed_form\InputRequired::__construct()
Constructs a PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
-
core/
modules/ views/ src/ Plugin/ views/ exposed_form/ InputRequired.php, line 27
Class
- InputRequired
- Exposed form plugin that provides an exposed form with required input.
Namespace
Drupal\views\Plugin\views\exposed_formCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ?FilterFormatRepositoryInterface $format_repository = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
if (!$format_repository) {
@trigger_error('Calling ' . __METHOD__ . '() without the $format_repository argument is deprecated in drupal:11.4.0 and the $format_repository argument will be required in drupal:12.0.0. See https://www.drupal.org/node/3035368', E_USER_DEPRECATED);
$format_repository = \Drupal::service(FilterFormatRepositoryInterface::class);
}
$this->formatRepository = $format_repository;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.