\DevOwl\RealCookieBanner\presets\middlewareCookieBlockerPresetIdsMiddleware

Middleware to add `blockerPresetIds` to the cookies so they are associated together.

This is useful to show a dropdown of available content blockers for a cookie preset.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
middleware()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

middleware()

middleware(array  $preset,\DevOwl\RealCookieBanner\presets\AbstractCookiePreset  $instance,array<mixed,\WP_Post>  $existingCookies,array<mixed,\WP_Post>  $existingBlockers)

See class description.

Parameters

array $preset
\DevOwl\RealCookieBanner\presets\AbstractCookiePreset $instance

Preset instance

array<mixed,\WP_Post> $existingCookies
array<mixed,\WP_Post> $existingBlockers