comparison core/lib/Drupal/Core/Config/Config.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
217 $this->validateValue($key, $value); 217 $this->validateValue($key, $value);
218 } 218 }
219 } 219 }
220 } 220 }
221 221
222 // Potentially configuration schema could have changed the underlying data's
223 // types.
224 $this->resetOverriddenData();
225
222 $this->storage->write($this->name, $this->data); 226 $this->storage->write($this->name, $this->data);
223 if (!$this->isNew) { 227 if (!$this->isNew) {
224 Cache::invalidateTags($this->getCacheTags()); 228 Cache::invalidateTags($this->getCacheTags());
225 } 229 }
226 $this->isNew = FALSE; 230 $this->isNew = FALSE;
227 $this->eventDispatcher->dispatch(ConfigEvents::SAVE, new ConfigCrudEvent($this)); 231 $this->eventDispatcher->dispatch(ConfigEvents::SAVE, new ConfigCrudEvent($this));
228 $this->originalData = $this->data; 232 $this->originalData = $this->data;
229 // Potentially configuration schema could have changed the underlying data's
230 // types.
231 $this->resetOverriddenData();
232 return $this; 233 return $this;
233 } 234 }
234 235
235 /** 236 /**
236 * Deletes the configuration object. 237 * Deletes the configuration object.