5 * Hooks specific to the EU Cookie Compliance module.
11 * Hooks that extend the EU Cookie Compliance module.
15 * Alter the geo_ip_match variable.
17 * @param bool &$geoip_match
18 * Whether to show the cookie compliance banner.
20 function hook_eu_cookie_compliance_geoip_match_alter(&$geoip_match) {
25 * Take control of EU Cookie Compliance path exclusion.
27 * @param bool $excluded
28 * Whether this path is excluded from cookie compliance behavior.
30 * Current string path.
31 * @param string $exclude_paths
32 * Admin variable of excluded paths.
34 function hook_eu_cookie_compliance_path_match_alter(&$excluded, $path, $exclude_paths) {
35 $node = \Drupal::routeMatch()->getParameter('node');
36 if ($node && $node->type === 'my_type') {
42 * Alter hook to provide advanced logic for hiding the banner.
44 * @param bool $show_popup
45 * Whether to show the banner.
47 function hook_eu_cookie_compliance_show_popup_alter(&$show_popup) {
48 $node = \Drupal::routeMatch()->getParameter('node');
49 if ($node && $node->type === 'my_type') {
55 * @} End of "addtogroup hooks".