From a12a87bd4001de85dd9699744e16bc2efb7bb282 Mon Sep 17 00:00:00 2001 From: bcanini <canini.16@osu.edu> Date: Wed, 24 Apr 2019 14:46:50 -0400 Subject: [PATCH] asc_bootstrap - fixing search --- web/themes/asc_bootstrap/asc_bootstrap.theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/themes/asc_bootstrap/asc_bootstrap.theme b/web/themes/asc_bootstrap/asc_bootstrap.theme index 1c6dd5ab17..e25960df08 100755 --- a/web/themes/asc_bootstrap/asc_bootstrap.theme +++ b/web/themes/asc_bootstrap/asc_bootstrap.theme @@ -49,7 +49,9 @@ function asc_bootstrap_theme_suggestions_page_alter(array &$suggestions, array $ */ function asc_bootstrap_preprocess_paragraph(&$variables) { $node = \Drupal::request()->attributes->get('node'); - $variables['page_content_type'] = $node->getType(); + if ($node != null) { + $variables['page_content_type'] = $node->getType(); + } } -- GitLab