You are here

public function StoragePhp::save in Configuration Management 7.2

Saves the configuration object into the DataStore.

Overrides Storage::save

File

lib/Drupal/configuration/Storage/StoragePhp.php, line 108
Definition of Drupal\configuration\Storage\StoragePhp.

Class

StoragePhp

Namespace

Drupal\configuration\Storage

Code

public function save() {
  if ($this
    ->checkFilePermissions($this->filename)) {
    file_put_contents(ConfigurationManagement::getStream() . '/' . $this->filename, $this
      ->getDataToSave());
  }
  return $this;
}