Skip to content
Snippets Groups Projects
Commit f8bd42ae authored by Nilesh Lohar's avatar Nilesh Lohar Committed by Alberto Siles
Browse files

Issue #3048792 by nileshlohar: Undefined index: class in...

Issue #3048792 by nileshlohar: Undefined index: class in bootstrap_barrio_theme_suggestions_links_alter()
parent a82315f3
No related branches found
No related tags found
No related merge requests found
...@@ -552,8 +552,10 @@ function bootstrap_barrio_form_node_form_alter(&$form, FormStateInterface $form_ ...@@ -552,8 +552,10 @@ function bootstrap_barrio_form_node_form_alter(&$form, FormStateInterface $form_
*/ */
function bootstrap_barrio_theme_suggestions_links_alter(array &$suggestions, array $variables) { function bootstrap_barrio_theme_suggestions_links_alter(array &$suggestions, array $variables) {
// ToDo get from core a variable to flag inline links. // ToDo get from core a variable to flag inline links.
if (in_array('inline', $variables['attributes']['class'])) { if (isset($variables['attributes']['class'])) {
$suggestions[] = 'links__inline'; if ( in_array('inline', $variables['attributes']['class']) ) {
$suggestions[] = 'links__inline';
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment