33 lines
863 B
PHP
33 lines
863 B
PHP
<?php
|
|
|
|
namespace Deblan\Bundle\BlogBundle\Page;
|
|
|
|
use Trinity\Bundle\ContentManagerBundle\Model\Page;
|
|
|
|
class DefaultPage extends Page
|
|
{
|
|
public function __construct($template = 'TrinityContentManagerBundle::default.html.twig')
|
|
{
|
|
parent::__construct($template);
|
|
}
|
|
|
|
public function getConfiguration()
|
|
{
|
|
return $this->configuration
|
|
->setBlock('title', 'Trinity\Bundle\ContentManagerBundle\Form\Type\BlockType')
|
|
->setBlock('subtitle', 'Trinity\Bundle\ContentManagerBundle\Form\Type\BlockType')
|
|
->setBlock('content1', 'Deblan\Bundle\BlogBundle\Form\Type\MarkitupBlockType')
|
|
;
|
|
}
|
|
|
|
public function getBlockContent1()
|
|
{
|
|
return $this->getBlock('content1');
|
|
}
|
|
|
|
public function setBlockContent1(Block $block)
|
|
{
|
|
return $this->setBlock($block);
|
|
}
|
|
}
|