public function FormHelper::getChangefreqSelectValues in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::getChangefreqSelectValues()
- 8.2 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::getChangefreqSelectValues()
Gets the values needed to display the changefreq dropdown setting.
Return value
array
1 call to FormHelper::getChangefreqSelectValues()
- FormHelper::displayEntitySettings in src/
Form/ FormHelper.php - @todo Refactor.
File
- src/
Form/ FormHelper.php, line 532
Class
- FormHelper
- Class FormHelper
Namespace
Drupal\simple_sitemap\FormCode
public function getChangefreqSelectValues() : array {
$options = [
'' => $this
->t('- Not specified -'),
];
foreach (self::getChangefreqOptions() as $setting) {
$options[$setting] = $this
->t($setting);
}
return $options;
}