Get ALL blocks on page, including copies
Permalink
I'm using the following to get the blocks on a page:
However, it's only returning the 'generic' blocks; ie, if I copy-and-paste a block (such that the copy has the same bID as the original), this code only returns the original instance of the block.
Is there any way I can get ALL the visible blocks (including copies) on the page?
$c = \Page::getCurrentPage(); $blocks = $c->getBlocks();
However, it's only returning the 'generic' blocks; ie, if I copy-and-paste a block (such that the copy has the same bID as the original), this code only returns the original instance of the block.
Is there any way I can get ALL the visible blocks (including copies) on the page?