public function ConfigReadonlyStorage::write in Configuration Read-only mode 7
Same name and namespace in other branches
- 8 src/Config/ConfigReadonlyStorage.php \Drupal\config_readonly\Config\ConfigReadonlyStorage::write()
Throws
Exception
File
- lib/
Drupal/ config_readonly/ Config/ ConfigReadonlyStorage.php, line 17
Class
- ConfigReadonlyStorage
- Defines the ConfigReadonly storage controller which will fails on write operations.
Namespace
Drupal\config_readonly\ConfigCode
public function write($name, array $data) {
if ($this
->read($name) != $data) {
$this
->checkLock();
}
return parent::write($name, $data);
}