Documentation

ManagerMiddleware extends AbstractTemplateMiddleware
in package

Mark manager-compatible services with a tag.

Table of Contents

Constants

IDENTIFIER_GOOGLE_TAG_MANAGER  = 'gtm'
IDENTIFIER_MATOMO_TAG_MANAGER  = 'mtm'
SET_COOKIES_AFTER_CONSENT_VIA_GOOGLE_TAG_MANAGER  = 'googleTagManager'
SET_COOKIES_AFTER_CONSENT_VIA_GOOGLE_TAG_MANAGER_WITH_GCM  = 'googleTagManagerWithGcm'
SET_COOKIES_AFTER_CONSENT_VIA_JAVASCRIPT  = 'none'
SET_COOKIES_AFTER_CONSENT_VIA_MATOMO_TAG_MANAGER  = 'matomoTagManager'
TAG_MANAGER_IDENTIFIERS  = [self::IDENTIFIER_GOOGLE_TAG_MANAGER, self::IDENTIFIER_MATOMO_TAG_MANAGER]

Properties

$consumer  : mixed
$suspended  : mixed

Methods

__construct()  : mixed
C'tor.
beforePersistTemplate()  : void
Before persisting the template instance to the storage we can modify it.
beforeRetrievingTemplate()  : void
Before the template got read through `retrieve` or `retrieveBy`.
beforeUsingTemplate()  : void
Before using the template (e.g. expose it to the frontend UI form) we can modify it.
getConsumer()  : mixed
Getter.
getVariableResolver()  : mixed
Getter.
isSuspended()  : mixed
Check if the middleware is suspended.
suspend()  : mixed
Allows to suspend or resume the middleware to take effect. This is efficient if a middleware could be called recursively.

Constants

IDENTIFIER_GOOGLE_TAG_MANAGER

public mixed IDENTIFIER_GOOGLE_TAG_MANAGER = 'gtm'

IDENTIFIER_MATOMO_TAG_MANAGER

public mixed IDENTIFIER_MATOMO_TAG_MANAGER = 'mtm'
public mixed SET_COOKIES_AFTER_CONSENT_VIA_GOOGLE_TAG_MANAGER = 'googleTagManager'
public mixed SET_COOKIES_AFTER_CONSENT_VIA_GOOGLE_TAG_MANAGER_WITH_GCM = 'googleTagManagerWithGcm'
public mixed SET_COOKIES_AFTER_CONSENT_VIA_JAVASCRIPT = 'none'
public mixed SET_COOKIES_AFTER_CONSENT_VIA_MATOMO_TAG_MANAGER = 'matomoTagManager'

TAG_MANAGER_IDENTIFIERS

public mixed TAG_MANAGER_IDENTIFIERS = [self::IDENTIFIER_GOOGLE_TAG_MANAGER, self::IDENTIFIER_MATOMO_TAG_MANAGER]

Properties

Methods

beforePersistTemplate()

Before persisting the template instance to the storage we can modify it.

public beforePersistTemplate(mixed $template, mixed &$allTemplates) : void

Example: Calculate recommendedWhenOneOf.

Parameters
$template : mixed
$allTemplates : mixed

beforeUsingTemplate()

Before using the template (e.g. expose it to the frontend UI form) we can modify it.

public beforeUsingTemplate(mixed $template) : void

Example: Replace variables with values.

Parameters
$template : mixed

getVariableResolver()

Getter.

public getVariableResolver() : mixed
Tags
codeCoverageIgnore

isSuspended()

Check if the middleware is suspended.

public isSuspended() : mixed

suspend()

Allows to suspend or resume the middleware to take effect. This is efficient if a middleware could be called recursively.

public suspend(bool $state) : mixed
Parameters
$state : bool

        
On this page

Search results