deblan.tv/src/Deblan/Bundle/BlogBundle/Page/DefaultPage.php

33 lines
863 B
PHP
Raw Normal View History

2015-03-02 21:57:49 +01:00
<?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);
}
2015-03-02 21:57:49 +01:00
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);
}
}