Deprecation: #81464 - Add API for meta tag management¶
See forge#81464
Description¶
The following methods have been marked as deprecated and should no longer be used.
Page
Renderer->add Meta Tag () Document
Template->x Ua Compatible
It has been replaced by the method Page
.
$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
// has meta tag been set already?
$previouslySetMetaTag = $pageRenderer->getMetaTag('property', 'og:title');
// take some decision here
$pageRenderer->setMetaTag('property', 'og:title', 'My amazing title');
Copied!
Impact¶
Extensions calling Page
or Document
will trigger a
deprecation warning.
Affected Installations¶
All instances using extensions that call Page
or Document
.
Migration¶
Migrate code to use Page
instead.