Skip to content
Snippets Groups Projects
Commit a12a87bd authored by Brian Canini's avatar Brian Canini
Browse files

asc_bootstrap - fixing search

parent 70b844ee
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,9 @@ function asc_bootstrap_theme_suggestions_page_alter(array &$suggestions, array $ ...@@ -49,7 +49,9 @@ function asc_bootstrap_theme_suggestions_page_alter(array &$suggestions, array $
*/ */
function asc_bootstrap_preprocess_paragraph(&$variables) { function asc_bootstrap_preprocess_paragraph(&$variables) {
$node = \Drupal::request()->attributes->get('node'); $node = \Drupal::request()->attributes->get('node');
$variables['page_content_type'] = $node->getType(); if ($node != null) {
$variables['page_content_type'] = $node->getType();
}
} }
......
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