You are here

public function FormHelper::getVariantSelectValues in Simple XML sitemap 8.3

Gets the values needed to display the variant dropdown setting.

Return value

array

1 call to FormHelper::getVariantSelectValues()
FormHelper::getVariantSelectValuesDefault in src/Form/FormHelper.php
Returns correct default value for variant select list.

File

src/Form/FormHelper.php, line 499

Class

FormHelper
Class FormHelper @package Drupal\simple_sitemap\Form

Namespace

Drupal\simple_sitemap\Form

Code

public function getVariantSelectValues() {
  return array_map(function ($variant) {
    return $this
      ->t($variant['label']);
  }, $this->generator
    ->getSitemapManager()
    ->getSitemapVariants(NULL, FALSE));
}