20 lines
416 B
PHP
20 lines
416 B
PHP
|
<?php
|
||
|
|
||
|
namespace Trinity\Bundle\ContentManagerBundle\Block;
|
||
|
|
||
|
use Trinity\Bundle\ContentManagerBundle\Model\Block;
|
||
|
|
||
|
class CodeBlock extends Block
|
||
|
{
|
||
|
const DEFAULT_TEMPLATE = 'TrinityContentManagerBundle:Block:block_text.html.twig';
|
||
|
|
||
|
public function getTemplate()
|
||
|
{
|
||
|
if ($this->template === null) {
|
||
|
return $this::DEFAULT_TEMPLATE;
|
||
|
}
|
||
|
|
||
|
return parent::getTemplate();
|
||
|
}
|
||
|
}
|