function _sitemap_rss_feed_icon in Sitemap 8.2
Same name and namespace in other branches
- 2.0.x sitemap.theme.inc \_sitemap_rss_feed_icon()
Helper function to create the RSS feed icon render array.
Return value
array
2 calls to _sitemap_rss_feed_icon()
- template_preprocess_sitemap_frontpage_item in ./
sitemap.theme.inc - Preprocess variables for sitemap-frontpage-item.html.twig.
- template_preprocess_sitemap_taxonomy_term in ./
sitemap.theme.inc - Preprocess variables for sitemap-taxonomy-term.html.twig.
File
- ./
sitemap.theme.inc, line 71 - Sitemap theme preprocessors.
Code
function _sitemap_rss_feed_icon() {
return [
'#theme' => 'image',
'#uri' => drupal_get_path('module', 'sitemap') . '/images/feed-small.png',
'#alt' => t('RSS feed icon'),
];
}