I am using TYPO3 9 and I want to implement a sharing functionality based on Fluid. Therefore I want to use the already provided metatags.
I wrote a ViewHelper class to make the metatags available to my Fluid template. Researching for possible solutions I found two things:
Setting meta data via TSFE with
$GLOBALS['TSFE']->page['description'] = $newDescription;
. But I can't get the data with$GLOBALS['TSFE']->page['description']
Using TYPO3's new MetaTagManager. But it seems that the Manager does not include the metatags set via TypoScript.
Is there another way to read all set metatags in PHP classes?