public function Simplesitemap::save_config in Simple XML sitemap 8
Saves a specific sitemap configuration to db.
Parameters
string $key: Configuration key, like 'entity_links'.
mixed $value: The configuration to be saved.
1 call to Simplesitemap::save_config()
- Simplesitemap::save_setting in src/
Simplesitemap.php - Saves a specific sitemap setting to db.
File
- src/
Simplesitemap.php, line 130 - Contains \Drupal\simplesitemap\Simplesitemap.
Class
- Simplesitemap
- Simplesitemap class.
Namespace
Drupal\simplesitemapCode
public function save_config($key, $value) {
\Drupal::service('config.factory')
->getEditable('simplesitemap.settings')
->set($key, $value)
->save();
$this
->initialize();
}