deblan.tv/vendor/trinity/src/Trinity/Bundle/ContentManagerBundle/Block/CheckboxBlock.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();
}
}