Commit 8edc5b29 by Manzar Hussain

Merge branch 'feature-theme' into 'develop'

news theme suggestion

See merge request manzarH/dic-global-dev!312
parents cc70d8b6 cf387238
......@@ -20,5 +20,12 @@ function envigo_preprocess_html(&$variables) {
}
}
function envigo_theme_suggestions_page_alter(array &$suggestions, array $variables) {
if ($node = \Drupal::request()->attributes->get('node')) {
array_splice($suggestions, 1, 0, 'page__' . $node->getType());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment