Magento 2 which of the elements automatically render their children in layout Xml?
-
11-05-2021 - |
Pergunta
Which two elements automatically render their children in Xml?
<block class=”\Magento\Framework\View\Element\AbstractBlock” name=”shop.info.details”/>
<block class=”\Magento\Framework\View\Element\Template” name=”shop.info.details”/>
<container name=”shop.info.details”/>
<block class=”\Magento\Framework\View\Element\Text\ListText” name=”shop.info.details”/>
Nenhuma solução correta
Outras dicas
3 and 4 I’d say.
Abstract block will not work as its class cannot be instantiated.
Template is likely the most commonly used but it does not render its children unless the template dictates it
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange