Commit cf387238 by Manzar Hussain

news theme suggestion

parent b821febf
......@@ -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