diff --git a/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorage.php b/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorage.php index d0e2ce3f297..9f808ce7587 100644 --- a/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorage.php +++ b/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorage.php @@ -41,7 +41,7 @@ abstract class DrupalConfigVerifiedStorage implements DrupalConfigVerifiedStorag * Implements DrupalConfigVerifiedStorageInterface::copyToFile(). */ public function copyToFile() { - return $this->signedFileStorage()->write($this->read()); + return $this->writeToFile($this->read()); } /** @@ -80,7 +80,14 @@ abstract class DrupalConfigVerifiedStorage implements DrupalConfigVerifiedStorag */ public function write($data) { $this->writeToActive($data); - $this->copyToFile(); + $this->writeToFile($data); + } + + /** + * Implements DrupalConfigVerifiedStorageInterface::writeToFile(). + */ + public function writeToFile($data) { + return $this->signedFileStorage()->write($data); } /** diff --git a/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorageInterface.php b/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorageInterface.php index b5eae3a71da..2fdce769057 100644 --- a/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorageInterface.php +++ b/core/lib/Drupal/Core/Config/DrupalConfigVerifiedStorageInterface.php @@ -47,6 +47,14 @@ interface DrupalConfigVerifiedStorageInterface { */ function isOutOfSync(); + /** + * Writes the configuration data into the active storage and the file. + * + * @param $data + * The configuration data to write. + */ + function write($data); + /** * Writes the configuration data into the active storage but not the file. * @@ -59,12 +67,12 @@ interface DrupalConfigVerifiedStorageInterface { function writeToActive($data); /** - * Writes the configuration data into the active storage and the file. + * Writes the configuration data into the file. * * @param $data - * The configuration data to write. + * The configuration data to write into the file. */ - function write($data); + function writeToFile($data); /** * Gets names starting with this prefix.