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
__construct()
public
__construct([iterable<string, MetaTagManagerInterface> $registeredManagers = [] ]) : mixed
Parameters
- $registeredManagers : iterable<string, MetaTagManagerInterface> = []
-
keyed by manager identifier
getAllManagers()
Get an array of all registered MetaTagManagers, keyed by their identifier
public
getAllManagers() : array<string|int, MetaTagManagerInterface>
Return values
array<string|int, MetaTagManagerInterface>getManagerForProperty()
Get the MetaTagManager for a specific property
public
getManagerForProperty(string $property) : MetaTagManagerInterface
Parameters
- $property : string
Return values
MetaTagManagerInterfacegetState()
public
getState() : array<string|int, mixed>
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
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>