public function FormHelper::getPrioritySelectValues in Simple XML sitemap 8.3
Same name and namespace in other branches
- 8.2 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::getPrioritySelectValues()
- 4.x src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::getPrioritySelectValues()
Gets the values needed to display the priority dropdown setting.
Return value
array
1 call to FormHelper::getPrioritySelectValues()
- FormHelper::displayEntitySettings in src/
Form/ FormHelper.php
File
- src/
Form/ FormHelper.php, line 536
Class
- FormHelper
- Class FormHelper @package Drupal\simple_sitemap\Form
Namespace
Drupal\simple_sitemap\FormCode
public function getPrioritySelectValues() {
$options = [];
foreach (range(0, self::PRIORITY_HIGHEST) as $value) {
$value = $this
->formatPriority($value / self::PRIORITY_DIVIDER);
$options[$value] = $value;
}
return $options;
}