public static function PageBottom::display in General Data Protection Regulation Compliance 8
Display Rules.
1 call to PageBottom::display()
- PageBottom::hook in src/
Hook/ PageBottom.php - Hook.
File
- src/
Hook/ PageBottom.php, line 70
Class
- PageBottom
- PreprocessHtml.
Namespace
Drupal\gdpr_compliance\HookCode
public static function display($config) {
$display = FALSE;
if (\Drupal::currentUser()
->id()) {
if ($config
->get('popup-users')) {
$display = TRUE;
}
}
elseif ($config
->get('popup-guests')) {
$display = TRUE;
}
return $display;
}