MetaTagGenerator
class \
Class to add the metatags for the SEO fields in core
Internal
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
- generateSocialImages() : array
- processSocialImage() : FileInterface
Properties
$imageService
protected
ImageService
$imageService
$metaTagManagerRegistry
protected
MetaTagManagerRegistry
$metaTagManagerRegistry
Methods
__construct()
public
__construct(MetaTagManagerRegistry $metaTagManagerRegistry, ImageService $imageService) : mixed
Parameters
- $metaTagManagerRegistry : MetaTagManagerRegistry
- $imageService : ImageService
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
generateSocialImages()
protected
generateSocialImages(array<int, FileReference> $fileReferences) : array
Parameters
- $fileReferences : array<int, FileReference>
Return values
arrayprocessSocialImage()
protected
processSocialImage(FileReference $fileReference) : FileInterface
Parameters
- $fileReference : FileReference