public function Generator::saveSetting in Simple XML sitemap 4.x
Stores a specific sitemap setting in configuration.
Parameters
string $name: Setting name, like 'max_links'.
mixed $setting: The setting to be saved.
Return value
$this
File
- src/
Manager/ Generator.php, line 90
Class
- Generator
- Main managing service.
Namespace
Drupal\simple_sitemap\ManagerCode
public function saveSetting(string $name, $setting) : Generator {
$this->settings
->save($name, $setting);
return $this;
}