You are here

public function FeedsConfigurable::setConfig in Feeds 8.2

Set configuration.

Parameters

$config: Array containing configuration information. Config array will be filtered by the keys returned by configDefaults() and populated with default values that are not included in $config.

1 call to FeedsConfigurable::setConfig()
FeedsConfigurable::copy in lib/Drupal/feeds/Plugin/FeedsConfigurable.php
Copy a configuration.

File

lib/Drupal/feeds/Plugin/FeedsConfigurable.php, line 126
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.

Namespace

Drupal\feeds\Plugin

Code

public function setConfig($config) {
  $defaults = $this
    ->configDefaults();
  $this->config = array_intersect_key($config, $defaults) + $defaults;
}