You are here

public function FormHelper::getChangefreqSelectValues in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 8.2 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::getChangefreqSelectValues()
  2. 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

1 call to FormHelper::getChangefreqSelectValues()
FormHelper::displayEntitySettings in src/Form/FormHelper.php

File

src/Form/FormHelper.php, line 551

Class

FormHelper
Class FormHelper @package Drupal\simple_sitemap\Form

Namespace

Drupal\simple_sitemap\Form

Code

public function getChangefreqSelectValues() {
  $options = [
    '' => $this
      ->t('- Not specified -'),
  ];
  foreach (self::getChangefreqOptions() as $setting) {
    $options[$setting] = $this
      ->t($setting);
  }
  return $options;
}