How to find out if block is deleted
Permalink
Somehow this is not obvious to me but if I create a block like so:
How can I actually find out from the $block-object whether this block has been deleted and is therefore currently not used on any page? There is no "isDeleted" check or anything like that....
$block = Block::getByID(7);
How can I actually find out from the $block-object whether this block has been deleted and is therefore currently not used on any page? There is no "isDeleted" check or anything like that....
I think $block->getCollectionList() is therefore wrong as it should only return a page IF the block is actually visible on the page and has not been deleted.