public static function FormUserLoginFormAlter::hook in General Data Protection Regulation Compliance 8
Hook.
1 call to FormUserLoginFormAlter::hook()
- gdpr_compliance_form_user_login_form_alter in ./
gdpr_compliance.module - Implements hook_form_TYPE_alter().
File
- src/
Hook/ FormUserLoginFormAlter.php, line 16
Class
- FormUserLoginFormAlter
- Hook hook_form_user_login_alter().
Namespace
Drupal\gdpr_compliance\HookCode
public static function hook(&$form, FormStateInterface $form_state, $form_id) {
if (\Drupal::config('gdpr_compliance.settings')
->get('user-login')) {
FormWarning::addWarning($form);
}
}