public function Config::setData

Replaces the data of this configuration object.

Parameters

array $data: The new configuration data.

Return value

Drupal\Core\Config\Config The configuration object.

File

drupal/core/lib/Drupal/Core/Config/Config.php, line 233
Definition of Drupal\Core\Config\Config.

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function setData(array $data) {
  $this
    ->replaceData($data);

  // A load would destroy the data just set (for example on import).
  $this->isLoaded = TRUE;
  return $this;
}