MetaTagGenerator
Read onlyYes
Class to add the metatags for the SEO fields in core
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
Methods
- __construct() : mixed
- generate() : mixed
- Generate the meta tags that can be set in backend and add them to frontend by using the MetaTag API
- generateAbsoluteImageUri() : string
- generateSocialImages() : array<string|int, mixed>
- processSocialImage() : FileInterface
Properties
$metaTagManagerRegistry
protected
MetaTagManagerRegistry
$metaTagManagerRegistry
Methods
__construct()
public
__construct(MetaTagManagerRegistry $metaTagManagerRegistry) : mixed
Parameters
- $metaTagManagerRegistry : MetaTagManagerRegistry
generate()
Generate the meta tags that can be set in backend and add them to frontend by using the MetaTag API
public
generate(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
generateAbsoluteImageUri()
protected
generateAbsoluteImageUri(FileInterface $image, ServerRequestInterface $request) : string
Parameters
- $image : FileInterface
- $request : ServerRequestInterface
Return values
stringgenerateSocialImages()
protected
generateSocialImages(array<int, FileReference> $fileReferences, ServerRequestInterface $request) : array<string|int, mixed>
Parameters
- $fileReferences : array<int, FileReference>
- $request : ServerRequestInterface
Return values
array<string|int, mixed>processSocialImage()
protected
processSocialImage(FileReference $fileReference) : FileInterface
Parameters
- $fileReference : FileReference