Skip to content
Snippets Groups Projects
Commit 7235991e authored by Martin Postma's avatar Martin Postma Committed by Alberto Siles
Browse files

Issue #2983560 by adeelnawaz, Deepthi kumari, vinod_kc, deepanker_bhalla,...

Issue #2983560 by adeelnawaz, Deepthi kumari, vinod_kc, deepanker_bhalla, lolandese, gueguerreiro, ridhimaabrol24, nvta, ilgnerfagundes, hatuhay: Coding Standards
parent 7ee7c880
No related branches found
No related tags found
No related merge requests found
......@@ -445,7 +445,7 @@ function bootstrap_barrio_theme_suggestions_menu_alter(array &$suggestions, arra
// Taken from http://kristiankaa.dk/article/drupal8-region-specific-menu-theme-hook-suggestion
// bootstrap_barrio_preprocess_block(&$variables)
if (isset($variables['attributes']['block'])) {
$hook = str_replace(array('block-', '-'), array('', '_'), $variables['attributes']['block']);
$hook = str_replace(['block-', '-'], ['', '_'], $variables['attributes']['block']);
$suggestions[] = $variables['theme_hook_original'] . '__' . $hook;
}
}
......@@ -553,7 +553,7 @@ function bootstrap_barrio_form_node_form_alter(&$form, FormStateInterface $form_
function bootstrap_barrio_theme_suggestions_links_alter(array &$suggestions, array $variables) {
// ToDo get from core a variable to flag inline links.
if (isset($variables['attributes']['class'])) {
if ( in_array('inline', $variables['attributes']['class']) ) {
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