function DefaultProcessor::setConfiguration
Same name in other branches
- 9 core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php \Drupal\aggregator\Plugin\aggregator\processor\DefaultProcessor::setConfiguration()
Overrides ConfigurableInterface::setConfiguration
1 call to DefaultProcessor::setConfiguration()
- DefaultProcessor::submitConfigurationForm in core/
modules/ aggregator/ src/ Plugin/ aggregator/ processor/ DefaultProcessor.php - Form submission handler.
File
-
core/
modules/ aggregator/ src/ Plugin/ aggregator/ processor/ DefaultProcessor.php, line 282
Class
- DefaultProcessor
- Defines a default processor implementation.
Namespace
Drupal\aggregator\Plugin\aggregator\processorCode
public function setConfiguration(array $configuration) {
$config = $this->config('aggregator.settings');
foreach ($configuration as $key => $value) {
$config->set($key, $value);
}
$config->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.