function FilterCaption::__construct
Same name in other branches
- 9 core/modules/filter/src/Plugin/Filter/FilterCaption.php \Drupal\filter\Plugin\Filter\FilterCaption::__construct()
- 8.9.x core/modules/filter/src/Plugin/Filter/FilterCaption.php \Drupal\filter\Plugin\Filter\FilterCaption::__construct()
- 11.x core/modules/filter/src/Plugin/Filter/FilterCaption.php \Drupal\filter\Plugin\Filter\FilterCaption::__construct()
Constructs a new FilterCaption.
Parameters
array $configuration: Configuration.
string $plugin_id: Plugin ID.
mixed $plugin_definition: Definition.
\Drupal\filter\FilterPluginManager $filter_manager: Filter plugin manager.
Overrides FilterBase::__construct
File
-
core/
modules/ filter/ src/ Plugin/ Filter/ FilterCaption.php, line 48
Class
- FilterCaption
- Provides a filter to caption elements.
Namespace
Drupal\filter\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ?FilterPluginManager $filter_manager = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->filterManager = $filter_manager ?: \Drupal::service('plugin.manager.filter');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.