You are here

public function Simplesitemap::save_setting in Simple XML sitemap 8

Saves a specific sitemap setting to db.

Parameters

$name: Setting name, like 'max_links'.

$setting: The setting to be saved.

File

src/Simplesitemap.php, line 238
Contains \Drupal\simplesitemap\Simplesitemap.

Class

Simplesitemap
Simplesitemap class.

Namespace

Drupal\simplesitemap

Code

public function save_setting($name, $setting) {
  $settings = $this
    ->get_config('settings');
  $settings[$name] = $setting;
  $this
    ->save_config('settings', $settings);
}