\DevOwl\RealCookieBanner\liteTcfConsent

Save the TCF string / consent in a dedicated cookie.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
consentCreated()
consentSetCookie()
setCookie()
getCookieName()
getInstance()
No public properties found
COOKIE_NAME_SUFFIX
No protected methods found
No protected properties found
N/A
__construct()
$me
N/A

Constants

Properties

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

Returns

string

consentCreated()

consentCreated(array  $result,array  $args)

A consent got created, let's save the TCF string in a dedicated cookie.

Parameters

array $result
array $args

consentSetCookie()

consentSetCookie(string  $cookieName,string  $cookieValue,boolean  $result,boolean  $revoke)

Automatically delete the TCF cookie when the original cookie gets deleted.

Parameters

string $cookieName
string $cookieValue
boolean $result

Got the cookie successfully created?

boolean $revoke

true if the cookie should be deleted

setCookie()

setCookie(string  $tcfString = null)

Set or update the existing cookie to the TCF string. It also respect the fact, that cross-site cookies needs to be set with `SameSite=None` attribute.

Parameters

string $tcfString

getCookieName()

getCookieName()

Get cookie name for the current page.

getInstance()

getInstance()

Get singleton instance.

__construct()

__construct()

C'tor.