function uikit_preprocess_menu_local_action

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

File

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

Code

function uikit_preprocess_menu_local_action(&$variables) {
  $link = $variables ['element']['#link'];

  // Set the link variable for menu-local-action.html.twig.
  $variables ['link'] = [
    'title' => $link ['title'],
    'url' => $link ['url'],
  ];
}

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