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