/** * {@inheritdoc} */ protected function writeConfig(Config $config) { // TODO: Remove this once #11743 is fixed $section = $config->getSection('elasticsearch'); foreach ($section->toArray() as $key => $value) { if ($value === null) { unset($section->{$key}); } } parent::writeConfig($config); }
/** * {@inheritdoc} */ protected function writeConfig(Config $config) { parent::writeConfig($config); if ($this->secondaryConfig !== null) { $this->config = $this->secondaryConfig; // Causes the config being displayed to the user in case of an error parent::writeConfig($this->secondaryConfig); } }
/** * {@inheritDoc} */ protected function writeConfig(Config $config) { parent::writeConfig($config); if ($this->updatedAppConfig !== null) { $this->updatedAppConfig->saveIni(); } }