PHP Class Sulu\Bundle\WebsiteBundle\Controller\WebsiteController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sulu/sulu

Protected Methods

Method Description
getAttributes ( $attributes, Sulu\Component\Content\Compat\StructureInterface $structure = null, $preview = false ) Generates attributes.
renderBlock ( $template, $block, $attributes = [] ) Returns rendered part of template specified by block.
renderStructure ( Sulu\Component\Content\Compat\StructureInterface $structure, array $attributes = [], boolean $preview = false, boolean $partial = false ) : Response Returns a rendered structure.

Method Details

getAttributes() protected method

Generates attributes.
protected getAttributes ( $attributes, Sulu\Component\Content\Compat\StructureInterface $structure = null, $preview = false )
$structure Sulu\Component\Content\Compat\StructureInterface

renderBlock() protected method

Returns rendered part of template specified by block.
protected renderBlock ( $template, $block, $attributes = [] )

renderStructure() protected method

Returns a rendered structure.
protected renderStructure ( Sulu\Component\Content\Compat\StructureInterface $structure, array $attributes = [], boolean $preview = false, boolean $partial = false ) : Response
$structure Sulu\Component\Content\Compat\StructureInterface The structure, which has been loaded for rendering
$attributes array Additional attributes, which will be passed to twig
$preview boolean Defines if the site is rendered in preview mode
$partial boolean Defines if only the content block of the template should be rendered
return Symfony\Component\HttpFoundation\Response