Is it possible to return all blocks which contain a specific substring?
e.g. return all blocks which contain the substring
I know I can return all blocks loaded in the current page like this:
$allBlocks = Mage::app()->getLayout()->getAllBlocks(); $blockNames = array_keys($allBlocks); var_dump($blockNames);
But how can I get ALL blocks, even blocks not loaded at the moment, so I can filter the necessary ones with the target substring out?
Which way is recommended to achieve this?