function StorageComparer::writeMode

Same name in other branches
  1. 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::writeMode()

Overrides StorageComparerInterface::writeMode

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 179

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function writeMode() : static {
    if (!$this->writeMode) {
        $this->writeMode = TRUE;
        $this->targetCacheStorage = new NullBackend('storage_comparer');
        $this->targetStorages = [];
    }
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.