protected function startBlock(Block $block) { $type = $block->getType(); if (!array_key_exists($type, $this->fonts)) { $type = 'standard'; } $this->setFont($type); return $this; }
protected function startBlock(Block $block) { $this->output[] = '<p class="' . htmlspecialchars($block->getType()) . '">'; return $this; }