MetaTagManagerRegistry

Holds all available meta tag managers, which are registered as tagged services via the #[AsMetaTagManager] attribute or the 'metatag.manager' service tag. Managers are ordered by their "before" and "after" constraints at container compile time.

Table of Contents

Properties

$registeredManagers  : iterable<string|int, mixed>

Methods

__construct()  : mixed
getAllManagers()  : array<string|int, MetaTagManagerInterface>
Get an array of all registered MetaTagManagers, keyed by their identifier
getManagerForProperty()  : MetaTagManagerInterface
Get the MetaTagManager for a specific property
getState()  : array<string|int, mixed>
registerManager()  : void
updateState()  : void

Properties

$registeredManagers read-only

protected iterable<string|int, mixed> $registeredManagers = []

Methods

getState()

public getState() : array<string|int, mixed>
Internal
Return values
array<string|int, mixed>

registerManager()

public registerManager(string $name, string $className[, array<string|int, mixed> $before = ['generic'] ][, array<string|int, mixed> $after = [] ]) : void
Deprecated

since TYPO3 v15.0, this method is a no-op and will be removed in TYPO3 v16.0. Register the meta tag manager as a tagged service using the #[AsMetaTagManager] attribute instead.

Parameters
$name : string
$className : string
$before : array<string|int, mixed> = ['generic']
$after : array<string|int, mixed> = []

updateState()

public updateState(array<string|int, mixed> $state) : void
Parameters
$state : array<string|int, mixed>
Internal
On this page

Search results