You are here

public function Simplesitemap::get_setting in Simple XML sitemap 8

Gets a specific sitemap setting.

Parameters

string $name: Name of the setting, like 'max_links'.

Return value

mixed The current setting from db or FALSE if setting does not exist.

1 call to Simplesitemap::get_setting()
Simplesitemap::generate_sitemap in src/Simplesitemap.php
Generates the sitemap for all languages and saves it to the db.

File

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

Class

Simplesitemap
Simplesitemap class.

Namespace

Drupal\simplesitemap

Code

public function get_setting($name) {
  $settings = $this
    ->get_config('settings');
  return isset($settings[$name]) ? $settings[$name] : FALSE;
}