You are here

public static function FormHelper::isValidChangefreq 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::isValidChangefreq()
  2. 4.x src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::isValidChangefreq()

Parameters

string $changefreq:

Return value

bool

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

File

src/Form/FormHelper.php, line 587

Class

FormHelper
Class FormHelper @package Drupal\simple_sitemap\Form

Namespace

Drupal\simple_sitemap\Form

Code

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