You are here

function template_preprocess_sitemap_frontpage_item in Sitemap 8.2

Same name and namespace in other branches
  1. 2.0.x sitemap.theme.inc \template_preprocess_sitemap_frontpage_item()

Preprocess variables for sitemap-frontpage-item.html.twig.

Parameters

array $variables: An associative array containing:

  • text: The text for the front page link.
  • url: The URL to the front page.
  • feed: The URL to the site feed.

File

./sitemap.theme.inc, line 60
Sitemap theme preprocessors.

Code

function template_preprocess_sitemap_frontpage_item(&$variables) {
  if (!empty($variables['feed'])) {
    $variables['feed_icon'] = _sitemap_rss_feed_icon();
  }
}