getParameter('node'); if ($node && $node->type === 'my_type') { $excluded = TRUE; } } /** * Alter hook to provide advanced logic for hiding the banner. * * @param bool $show_popup * Whether to show the banner. */ function hook_eu_cookie_compliance_show_popup_alter(&$show_popup) { $node = \Drupal::routeMatch()->getParameter('node'); if ($node && $node->type === 'my_type') { $show_popup = FALSE; } } /** * @} End of "addtogroup hooks". */