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