You are here

public static function SitemapGenerator::get_priority_select_values in Simple XML sitemap 8

Gets the values needed to display the priority dropdown setting.

Return value

array $options

1 call to SitemapGenerator::get_priority_select_values()
simplesitemap_form_alter in ./simplesitemap.module
Implements hook_form_alter.

File

src/SitemapGenerator.php, line 41
Contains \Drupal\simplesitemap\SitemapGenerator.

Class

SitemapGenerator
SitemapGenerator class.

Namespace

Drupal\simplesitemap

Code

public static function get_priority_select_values() {
  $options = array();
  foreach (range(0, self::PRIORITY_HIGHEST) as $value) {
    $value = $value / self::PRIORITY_DIVIDER;
    $options[(string) $value] = (string) $value;
  }
  return $options;
}