How is Magento\Framework\View\Page\Config\Reader\Head::setMetadata() implemented and used?

Context: how is Magento\Framework\View\Page\Config::setMetadata() implemented and used?

Implementation

Details: how is Magento\Framework\View\Page\Config::setMetadata() implemented and used?

Intention

It is used to add some HTML <meta> tags to the current page via a layout.xml file.

How is it called?

Step 1. Magento\Framework\View\Layout::build()

Step 2. Magento\Framework\View\Layout\Builder::build()

Step 3. Magento\Framework\View\Page\Builder::generateLayoutBlocks()

Step 4. Magento\Framework\View\Layout\Builder::generateLayoutBlocks()

Step 5. Magento\Framework\View\Layout::generateElements()

Step 6. Magento\Framework\View\Layout\ReaderPool::interpret()


Step 7. Magento\Framework\View\Page\Config\Reader\Head::interpret()


Step 8. Magento\Framework\View\Page\Config\Reader\Head::setMetadata()