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