You are here

interface PersonalInformationFormInterface in EU Cookie Compliance (GDPR Compliance) 8

Same name and namespace in other branches
  1. 2.0.x src/PersonalInformationFormInterface.php \Drupal\eu_cookie_compliance\PersonalInformationFormInterface

Interface to describe forms that collect personal data.

Hierarchy

Expanded class hierarchy of PersonalInformationFormInterface

All classes that implement PersonalInformationFormInterface

1 file declares its use of PersonalInformationFormInterface
eu_cookie_compliance.module in ./eu_cookie_compliance.module
The main file for the EU Cookie Compliance module.

File

src/PersonalInformationFormInterface.php, line 10

Namespace

Drupal\eu_cookie_compliance
View source
interface PersonalInformationFormInterface {

  /**
   * Inject the GDPR checkbox into the form.
   *
   * @param array $form
   *   Form structure.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   Form state that accompanies the form.
   */
  public function formInjectGdprCheckbox(array &$form, FormStateInterface $form_state);

  /**
   * Process form submission in regards to GDPR checkbox.
   *
   * @param array $form
   *   Form structure.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   Form state with the submitted values.
   */
  public function formSubmitGdprCheckbox(array $form, FormStateInterface $form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
PersonalInformationFormInterface::formInjectGdprCheckbox public function Inject the GDPR checkbox into the form.
PersonalInformationFormInterface::formSubmitGdprCheckbox public function Process form submission in regards to GDPR checkbox.