function FilterNull::__construct
Same name in other branches
- 9 core/modules/filter/src/Plugin/Filter/FilterNull.php \Drupal\filter\Plugin\Filter\FilterNull::__construct()
- 8.9.x core/modules/filter/src/Plugin/Filter/FilterNull.php \Drupal\filter\Plugin\Filter\FilterNull::__construct()
- 10 core/modules/filter/src/Plugin/Filter/FilterNull.php \Drupal\filter\Plugin\Filter\FilterNull::__construct()
Overrides FilterBase::__construct
File
-
core/
modules/ filter/ src/ Plugin/ Filter/ FilterNull.php, line 36
Class
- FilterNull
- Provides a fallback placeholder filter to use for missing filters.
Namespace
Drupal\filter\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
// Once per filter, log that a filter plugin was missing.
if (!$this->logged) {
$this->logged = TRUE;
\Drupal::logger('filter')->alert('Missing filter plugin: %filter.', [
'%filter' => $plugin_id,
]);
}
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.