function FilterBase::setConfiguration
Same name in other branches
- 8.9.x core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::setConfiguration()
- 10 core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::setConfiguration()
- 11.x core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::setConfiguration()
Overrides ConfigurableInterface::setConfiguration
2 calls to FilterBase::setConfiguration()
- FilterBase::__construct in core/
modules/ filter/ src/ Plugin/ FilterBase.php - FilterHtml::setConfiguration in core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtml.php - Sets the configuration for this plugin instance.
1 method overrides FilterBase::setConfiguration()
- FilterHtml::setConfiguration in core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtml.php - Sets the configuration for this plugin instance.
File
-
core/
modules/ filter/ src/ Plugin/ FilterBase.php, line 60
Class
- FilterBase
- Provides a base class for Filter plugins.
Namespace
Drupal\filter\PluginCode
public function setConfiguration(array $configuration) {
if (isset($configuration['status'])) {
$this->status = (bool) $configuration['status'];
}
if (isset($configuration['weight'])) {
$this->weight = (int) $configuration['weight'];
}
if (isset($configuration['settings'])) {
$this->settings = (array) $configuration['settings'];
}
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.