public function DefaultProcessor::setConfiguration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php \Drupal\aggregator\Plugin\aggregator\processor\DefaultProcessor::setConfiguration()
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
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 283
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();
}