going on with home display: shworooms
This commit is contained in:
@@ -138,3 +138,15 @@ function materiotheme_form_user_login_form_alter(&$form, FormStateInterface $for
|
||||
// // $vars['links'][$lang_code]['link']['#title'] = $lang_code;
|
||||
// // }
|
||||
// }
|
||||
|
||||
|
||||
function materiotheme_theme_suggestions_taxonomy_term_alter(&$suggestions, &$vars){
|
||||
// ksm($suggestions);
|
||||
// ksm($vars);
|
||||
$original = $vars['theme_hook_original'];
|
||||
$bundle = $vars['elements']['#taxonomy_term']->bundle();
|
||||
$viewmode = $vars['elements']["#view_mode"];
|
||||
$suggestions[] = $original.'__'.$bundle.'__'.$viewmode;
|
||||
|
||||
// dsm($suggestions);
|
||||
}
|
||||
|
Reference in New Issue
Block a user