\DevOwl\RealCookieBanner\lite\viewTcfBanner

If TCF is active, we need to modify some behaviors like forbid the use of "Hide" in decisions in customizer. For "new controls" check out the `TcfBannerCustomize` class.

Summary

Methods
Properties
Constants
multilingual()
localize()
localizeTexts()
localizeMetadata()
hooks()
customizeBasicLayoutHint()
customizeDisableHide()
customizeButtonFontSizeNotice()
customizeButtonContrastRatioValidator()
optionDisableDecisionHide()
getInstance()
No public properties found
MINIMUM_BUTTON_CONTRAST_RATIO
No protected methods found
No protected properties found
N/A
No private methods found
$me
N/A

Constants

MINIMUM_BUTTON_CONTRAST_RATIO

MINIMUM_BUTTON_CONTRAST_RATIO =5

Properties

Methods

multilingual()

multilingual()

Make texts multilingual.

localize()

localize()

Localize the used vendors and purposes for the frontend.

We do not need to translate it with our AbstractLanguagePlugin as the TCF vendor list and purposes are already localized.

localizeTexts()

localizeTexts()

Texts for TCF groups view.

localizeMetadata()

localizeMetadata()

Other metadata available like GVL download time, TCF policy version, .

..

hooks()

hooks()

Initialize filters at `plugins_loaded` time.

customizeBasicLayoutHint()

customizeBasicLayoutHint(array  $sections)

Add a notice to the "Basic Layout" section.

Parameters

array $sections

customizeDisableHide()

customizeDisableHide(array  $sections)

The decisions no longer can have the "Hide" as available dropdown selection, remove it.

Parameters

array $sections

customizeButtonFontSizeNotice()

customizeButtonFontSizeNotice(array  $sections)

If TCF is active, the font (family), font size and font weight must be the same as of "Accept all".

Parameters

array $sections

customizeButtonContrastRatioValidator()

customizeButtonContrastRatioValidator(array  $sections)

If TCF is active, there must be a minimum contrast ratio of 5 for call-to-action buttons.

Parameters

array $sections

optionDisableDecisionHide()

optionDisableDecisionHide(string  $value,string  $id)

The decisions no longer can have "Hide" as value, fallback to default.

Parameters

string $value
string $id

getInstance()

getInstance()

Get singleton instance.