Skip to content
Snippets Groups Projects
Unverified Commit 91e29f27 authored by weaver299's avatar weaver299 Committed by GitHub
Browse files

Merge pull request #128 from ASCWebServices/canini

asc_bootstrap - fixing search
parents 70b844ee a12a87bd
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 $
*/
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();
}
}
......
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