One recent Magento 2 discovery that caught me off guard is, per the dev docs site, the <action/>
method tag is depreciated
The
<action>
instruction is deprecated. If the method implementation allows, use the<argument>
for<block>
or<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 <action method="unsetChild"/>
)
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