/** * Triggered after block was removed from DB. * * All cached blocks are automatically removed. * * @param \Cake\Event\Event $event The event that was triggered * @param \Block\Model\Entity\Block $block The block entity that was deleted * @param \ArrayObject $options Additional options given as an array * @return void */ public function afterDelete(Event $event, Block $block, ArrayObject $options = null) { $block->afterDelete(); $this->clearCache(); }