public function StorableConfigBase::initWithData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/StorableConfigBase.php \Drupal\Core\Config\StorableConfigBase::initWithData()
Initializes a configuration object with pre-loaded data.
Parameters
array $data: Array of loaded data for this configuration object.
Return value
$this The configuration object.
1 call to StorableConfigBase::initWithData()
- Config::initWithData in core/
lib/ Drupal/ Core/ Config/ Config.php - Initializes a configuration object with pre-loaded data.
1 method overrides StorableConfigBase::initWithData()
- Config::initWithData in core/
lib/ Drupal/ Core/ Config/ Config.php - Initializes a configuration object with pre-loaded data.
File
- core/
lib/ Drupal/ Core/ Config/ StorableConfigBase.php, line 99 - Contains \Drupal\Core\Config\StorableConfigBase.
Class
- StorableConfigBase
- Provides a base class for configuration objects with storage support.
Namespace
Drupal\Core\ConfigCode
public function initWithData(array $data) {
$this->isNew = FALSE;
$this->data = $data;
$this->originalData = $this->data;
return $this;
}