protected function CustomLinksForm::customLinksToString in Simple XML sitemap 4.x
Parameters
array $links:
Return value
string
1 call to CustomLinksForm::customLinksToString()
- CustomLinksForm::buildForm in src/
Form/ CustomLinksForm.php - Form constructor.
File
- src/
Form/ CustomLinksForm.php, line 224
Class
- CustomLinksForm
- Class CustomLinksForm
Namespace
Drupal\simple_sitemap\FormCode
protected function customLinksToString(array $links) : string {
$setting_string = '';
foreach ($links as $custom_link) {
$setting_string .= $custom_link['path'];
$setting_string .= isset($custom_link['priority']) ? ' ' . $this->formHelper
->formatPriority($custom_link['priority']) : '';
$setting_string .= isset($custom_link['changefreq']) ? ' ' . $custom_link['changefreq'] : '';
$setting_string .= "\r\n";
}
return $setting_string;
}