\DevOwl\RealCookieBanner\presets\middlewareCookieGroupNamesBackwardsCompatibleMiddleware

Example: After we have introduced Continuous Localization the `Statistic` wording got changed to `Statistics`. This middleware fixes the `Statistics` wording and check if a term for `Statistic` exists and fallback to this wording as we do not change the original term while updating the plugin.

Summary

Methods
Properties
Constants
__construct()
middleware()
createMiddlewareStatisticStatics()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$getOriginalAndLegacyName
N/A

Properties

$getOriginalAndLegacyName

$getOriginalAndLegacyName :

Type

Methods

__construct()

__construct(callable  $getOriginalAndLegacyName)

C'tor.

Parameters

callable $getOriginalAndLegacyName

A function which returns an [originalName: string, legacyName: string] array.

middleware()

middleware(array  $preset)

See class description.

Parameters

array $preset

createMiddlewareStatisticStatics()

createMiddlewareStatisticStatics()