In the DevDocs, Magento details the possible meta tag names available to include in the head layout XML. The explanation for the media_type tag caught my eye:

This tag will not render (see \Magento\Framework\View\Page\Config\Renderer for details)

Indeed, when checking the class mentioned, it looks like the media_type tag will not output anything:

case 'media_type':
    $metadataTemplate = false;

What is the reason for including this in both the documentation and in the code, if there is no output rendered?

  • Danny did you find anything? – Haim Nov 20 '18 at 3:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.