/** * Renders the given block. * * @param \Cake\Event\Event $event The event that was triggered * @param \Block\Model\Entity\Block $block Block entity to be rendered * @param array $options Additional options, will be passed to the template * element being rendered * @return string The rendered block */ public function renderBlock(Event $event, Block $block, $options = []) { return $block->render(); }