abstract public function ConsentStorageBase::registerConsent in EU Cookie Compliance (GDPR Compliance) 8
Same name and namespace in other branches
- 2.0.x src/Plugin/ConsentStorageBase.php \Drupal\eu_cookie_compliance\Plugin\ConsentStorageBase::registerConsent()
Register consent.
In addition to the parameters passed to the function, consider storing the uid, ip address, timestamp and the current revision of the cookie policy.
Parameters
string $consent_type: "banner" if the consent is given to the cookie banner or the form ID when consent is given on a form.
Return value
bool Returns TRUE when the consent has been stored successfully, FALSE on error.
1 method overrides ConsentStorageBase::registerConsent()
- BasicConsentStorage::registerConsent in src/
Plugin/ ConsentStorage/ BasicConsentStorage.php - Register consent.
File
- src/
Plugin/ ConsentStorageBase.php, line 128
Class
- ConsentStorageBase
- Provides a base class for a consent storage.
Namespace
Drupal\eu_cookie_compliance\PluginCode
public abstract function registerConsent($consent_type);