function DefaultProcessor::setConfiguration

Same name in other branches
  1. 8.9.x 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 283

Class

DefaultProcessor
Defines a default processor implementation.

Namespace

Drupal\aggregator\Plugin\aggregator\processor

Code

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.