One recent Magento 2 discovery that caught me off guard is, per the dev docs site, the
<action/> method tag is depreciated
<action>instruction is deprecated. If the method implementation allows, use the
<referenceBlock>to access block public API.
Given this, it sort of makes sense that the
<container/> tags don’t allow you to call any action methods that, at first blush, you might expect them to (such as
That said, for a depreciated tag, it’s weird to see it’s still used in 136 core layout files.
$ find vendor/magento/ -name '*.xml' | xargs ack -l '<action method' | wc -l 136