protected function SimplesitemapVariantsForm::variantsToString in Simple XML sitemap 8.3
Parameters
array $variants:
Return value
string
1 call to SimplesitemapVariantsForm::variantsToString()
- SimplesitemapVariantsForm::buildForm in src/
Form/ SimplesitemapVariantsForm.php - Form constructor.
File
- src/
Form/ SimplesitemapVariantsForm.php, line 138
Class
- SimplesitemapVariantsForm
- Class SimplesitemapVariantsForm @package Drupal\simple_sitemap\Form
Namespace
Drupal\simple_sitemap\FormCode
protected function variantsToString(array $variants) {
$variants_string = '';
foreach ($variants as $variant_name => $variant_definition) {
$variants_string .= $variant_name . ' | ' . $variant_definition['type'] . ' | ' . $variant_definition['label'] . "\r\n";
}
return $variants_string;
}