You are here

public static function FormHelper::isValidChangefreq in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::isValidChangefreq()
  2. 8.2 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::isValidChangefreq()

Parameters

string $changefreq:

Return value

bool

1 call to FormHelper::isValidChangefreq()
CustomLinksForm::validateForm in src/Form/CustomLinksForm.php
Form validation handler.

File

src/Form/FormHelper.php, line 570

Class

FormHelper
Class FormHelper

Namespace

Drupal\simple_sitemap\Form

Code

public static function isValidChangefreq(string $changefreq) : bool {
  return in_array($changefreq, self::$changefreqValues, TRUE);
}