AbstractGoogleConsentMode
extends BaseSettings
in package
AbstractYes
Abstract implementation of the settings for the Google Consent Mode compatibility.
Table of Contents
Properties
Methods
- calculateRecommandations() : mixed
- Calculate some recommendations depending on the available services and if GCM is active or not.
- getConsentModes() : mixed
- Get the consent modes as array.
- getSettings() : mixed
- Getter.
- isCollectAdditionalDataViaUrlParameters() : bool
- Check if collect additional data via URL parameters is enabled.
- isEnabled() : bool
- Check if compatibility is enabled.
- isListPurposes() : bool
- Naming of requested consent types in first view.
- isRedactAdsDataWithoutConsent() : bool
- Check if collect additional data via URL parameters is enabled.
- isShowRecommandationsWithoutConsent() : bool
- Check if show recommendations for using Google services without consent is enabled.
- setSettings() : mixed
- Setter.
Properties
$settings
See Settings
private
Settings
$settings
Methods
calculateRecommandations()
Calculate some recommendations depending on the available services and if GCM is active or not.
public
calculateRecommandations([bool $dismissedNoConsentTypes = false ][, array<string|int, int> $dismissedNoLegitimateInterest = [] ][, array<string|int, string> $dismissedRequiringGcmActive = [] ]) : mixed
Parameters
- $dismissedNoConsentTypes : bool = false
- $dismissedNoLegitimateInterest : array<string|int, int> = []
- $dismissedRequiringGcmActive : array<string|int, string> = []
getConsentModes()
Get the consent modes as array.
public
getConsentModes() : mixed
getSettings()
Getter.
public
getSettings() : mixed
Tags
isCollectAdditionalDataViaUrlParameters()
Check if collect additional data via URL parameters is enabled.
public
abstract isCollectAdditionalDataViaUrlParameters() : bool
Return values
boolisEnabled()
Check if compatibility is enabled.
public
abstract isEnabled() : bool
Return values
boolisListPurposes()
Naming of requested consent types in first view.
public
abstract isListPurposes() : bool
Return values
boolisRedactAdsDataWithoutConsent()
Check if collect additional data via URL parameters is enabled.
public
abstract isRedactAdsDataWithoutConsent() : bool
Return values
boolisShowRecommandationsWithoutConsent()
Check if show recommendations for using Google services without consent is enabled.
public
abstract isShowRecommandationsWithoutConsent() : bool
Return values
boolsetSettings()
Setter.
public
setSettings(Settings $settings) : mixed
Parameters
- $settings : Settings