MetaTagGenerator

readonly class \TYPO3\CMS\Seo\MetaTag\MetaTagGenerator

Class to add the metatags for the SEO fields in core

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Properties

$metaTagManagerRegistry  : MetaTagManagerRegistry

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
processSocialImage()  : FileInterface

Properties

Methods

generate()

Generate the meta tags that can be set in backend and add them to frontend by using the MetaTag API

public generate(array $params) : mixed

Parameters

$params : array

generateAbsoluteImageUri()

protected generateAbsoluteImageUri(FileInterface $image, ServerRequestInterface $request) : string

Parameters

$image : FileInterface
$request : ServerRequestInterface

Return values

string

generateSocialImages()

protected generateSocialImages(array<int, FileReference> $fileReferences, ServerRequestInterface $request) : array

Parameters

$fileReferences : array<int, FileReference>
$request : ServerRequestInterface

Return values

array
On this page