StorableConfigBase::initWithData

public StorableConfigBase::initWithData(array $data)

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.

File

core/lib/Drupal/Core/Config/StorableConfigBase.php, line 94

Class

StorableConfigBase
Provides a base class for configuration objects with storage support.

Namespace

Drupal\Core\Config

Code

public function initWithData(array $data) {
  $this->isNew = FALSE;
  $this->data = $data;
  $this->originalData = $this->data;
  return $this;
}
doc_Drupal
2016-10-29 09:44:32
Comments
Leave a Comment

Please login to continue.