function uikit_preprocess_feed_icon

8.x-3.x preprocess.inc uikit_preprocess_feed_icon(&$variables)
8.x-2.x preprocess.inc uikit_preprocess_feed_icon(&$variables)

Implements hook_preprocess_HOOK() for feed-icon.html.twig.

Feed icon on the front page is missing the site name, as reported in Feed icon on the front page misses site title. We are following this issue so we can make the appropriate changes when the issue is fixed.

File

includes/preprocess.inc, line 246
Set up variables to be placed within the template (.html.twig) files.

Code

function uikit_preprocess_feed_icon(&$variables) {
  $config = \Drupal::config('system.site');
  $variables ['site_name'] = $config->get('name');
}

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in