function uikit_theme_suggestions_details_alter

8.x-3.x alter.inc uikit_theme_suggestions_details_alter(array &$suggestions, array $variables)
8.x-2.x alter.inc uikit_theme_suggestions_details_alter(array &$suggestions, array $variables)

Implements hook_theme_suggestions_HOOK_alter() for details templates.

File

includes/alter.inc, line 75
Modify structured content arrays.

Code

function uikit_theme_suggestions_details_alter(array &$suggestions, array $variables) {
  if (isset($variables ['element']['#group']) && $variables ['element']['#group']) {
    $suggestions [] = 'details__grouped';
  }
}

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