Properties

$regexp

$regexp :

Type

$headlessContentBlocker

$headlessContentBlocker :

Type

$post

$post :

Type

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

appendFromStringArray()

appendFromStringArray(array<mixed,string>  $blockers)

Generate the custom element blockers and regular expressions and append it to this blockable instance.

Parameters

array<mixed,string> $blockers

findSelectorSyntaxFinderForMatch()

findSelectorSyntaxFinderForMatch(\DevOwl\FastHtmlTag\finder\match\AbstractMatch  $match)

Find a `SyntaxSelectorFinder` for a given `AbstractMatch`.

Parameters

\DevOwl\FastHtmlTag\finder\match\AbstractMatch $match

getBlockerId()

getBlockerId(): integer|null

Get the blocker ID. This is added as a custom HTML attribute to the blocked element so your frontend can e.g. add a visual content blocker.

Returns

integer|null

getRequiredIds()

getRequiredIds(): array<mixed,integer>

Get required IDs. This is added as a custom HTML attribute to the blocked element so your frontend can determine which items by ID are needed so the item can be unblocked.

Returns

array<mixed,integer>

getCriteria()

getCriteria(): string

The criteria type. This is added as a custom HTML attribute to the blocked element so your frontend can determine the origin for the `getRequiredIds`.

E.g. differ between TCF vendors and another custom criteria.

Returns

string

hasBlockerId()

hasBlockerId()

Determine if this blockable should be blocked.

getSelectorSyntaxFinder()

getSelectorSyntaxFinder()

Getter.

getRegularExpressions()

getRegularExpressions(): array<mixed,string>

Getter.

Returns

array<mixed,string>

getContainsRegularExpressions()

getContainsRegularExpressions(): array<mixed,string>

Getter.

Returns

array<mixed,string>

getPost()

getPost()

Getter.