Documentation

Plugin extends AbstractPlugin
in package
Uses UtilsProvider

Real Cookie Banner plugin for `HeadlessContentBlocker`.

Table of Contents

Constants

TABLE_NAME_BLOCKER_THUMBNAILS  = 'blocker_thumbnails'

Properties

$headlessContentBlocker  : mixed
$wpContentDir  : mixed

Methods

__construct()  : mixed
C'tor.
afterSetup()  : mixed
The content blocker got setup completely.
beforeMatch()  : mixed
See `AbstractPlugin`.
blockableStringExpression()  : string
See `AbstractPlugin`.
blockedMatch()  : mixed
See `AbstractPlugin`.
checkResult()  : BlockedResult
See `AbstractPlugin`.
getHeadlessContentBlocker()  : mixed
Getter.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
init()  : mixed
Initialize your plugin add e.g. new visual parent definitions.
inlineStyleBlockRule()  : bool
See `AbstractPlugin`.
inlineStyleModifyDocuments()  : bool
See `AbstractPlugin`.
inlineStyleShouldBeExtracted()  : bool
See `AbstractPlugin`.
keepAlwaysAttributes()  : array<string|int, string>
See `AbstractPlugin`.
modifyHtmlAfterProcessing()  : mixed
See `AbstractPlugin`.
notBlockedMatch()  : mixed
Called after a match got not blocked. Opposite of `blockedMatch`.
setup()  : mixed
Before the content blocker gets setup.
skipInlineScriptVariableAssignment()  : array<string|int, string>
See `AbstractPlugin`.
visualParent()  : bool|string|number
See `AbstractPlugin`.

Constants

TABLE_NAME_BLOCKER_THUMBNAILS

public mixed TABLE_NAME_BLOCKER_THUMBNAILS = 'blocker_thumbnails'

Properties

$wpContentDir

private mixed $wpContentDir

Methods

afterSetup()

The content blocker got setup completely.

public afterSetup() : mixed

beforeMatch()

See `AbstractPlugin`.

public beforeMatch(AbstractMatcher $matcher, AbstractMatch $match) : mixed
Parameters
$matcher : AbstractMatcher
$match : AbstractMatch

blockableStringExpression()

See `AbstractPlugin`.

public blockableStringExpression(string $expression, AbstractBlockable $blockable) : string
Parameters
$expression : string
$blockable : AbstractBlockable
Return values
string

blockedMatch()

See `AbstractPlugin`.

public blockedMatch(BlockedResult $result, AbstractMatcher $matcher, AbstractMatch $match) : mixed
Parameters
$result : BlockedResult
$matcher : AbstractMatcher
$match : AbstractMatch

getHeadlessContentBlocker()

Getter.

public final getHeadlessContentBlocker() : mixed
Tags
codeCoverageIgnore

getPluginConstantPrefix()

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

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

init()

Initialize your plugin add e.g. new visual parent definitions.

public init() : mixed

keepAlwaysAttributes()

See `AbstractPlugin`.

public keepAlwaysAttributes(array<string|int, string> $keepAttributes, AbstractMatcher $matcher, AbstractMatch $match) : array<string|int, string>
Parameters
$keepAttributes : array<string|int, string>
$matcher : AbstractMatcher
$match : AbstractMatch
Return values
array<string|int, string>

modifyHtmlAfterProcessing()

See `AbstractPlugin`.

public modifyHtmlAfterProcessing(string $html) : mixed
Parameters
$html : string

setup()

Before the content blocker gets setup.

public setup() : mixed

skipInlineScriptVariableAssignment()

See `AbstractPlugin`.

public skipInlineScriptVariableAssignment(array<string|int, string> $names, ScriptInlineMatcher $matcher, ScriptInlineMatch $match) : array<string|int, string>
Parameters
$names : array<string|int, string>
$matcher : ScriptInlineMatcher
$match : ScriptInlineMatch
Return values
array<string|int, string>

visualParent()

See `AbstractPlugin`.

public visualParent(bool|string|number $visualParent, AbstractMatcher $matcher, AbstractMatch $match) : bool|string|number
Parameters
$visualParent : bool|string|number
$matcher : AbstractMatcher
$match : AbstractMatch
Return values
bool|string|number

        
On this page

Search results