PHP Class Sulu\Bundle\AdminBundle\Widgets\WidgetsHandler

Inheritance: implements Sulu\Bundle\AdminBundle\Widgets\WidgetsHandlerInterface
Exibir arquivo Open project: sulu/sulu

Protected Properties

Property Type Description
$header string
$template string
$templateEngine Symfony\Component\Templating\EngineInterface
$widgetGroups array
$widgets Sulu\Bundle\AdminBundle\Widgets\WidgetInterface[]

Public Methods

Method Description
__construct ( Symfony\Component\Templating\EngineInterface $templateEngine, $widgetGroups )
addWidget ( Sulu\Bundle\AdminBundle\Widgets\WidgetInterface $widget, $alias )
hasWidgetGroup ( $groupAlias )
render ( array $aliases, array $parameters = [] ) : string renders widgets for given aliases.
renderWidgetGroup ( string $groupAlias, array $parameters = [] ) : string renders a widget group.

Method Details

__construct() public method

public __construct ( Symfony\Component\Templating\EngineInterface $templateEngine, $widgetGroups )
$templateEngine Symfony\Component\Templating\EngineInterface

addWidget() public method

public addWidget ( Sulu\Bundle\AdminBundle\Widgets\WidgetInterface $widget, $alias )
$widget Sulu\Bundle\AdminBundle\Widgets\WidgetInterface

hasWidgetGroup() public method

public hasWidgetGroup ( $groupAlias )

render() public method

renders widgets for given aliases.
public render ( array $aliases, array $parameters = [] ) : string
$aliases array
$parameters array
return string

renderWidgetGroup() public method

renders a widget group.
public renderWidgetGroup ( string $groupAlias, array $parameters = [] ) : string
$groupAlias string
$parameters array
return string

Property Details

$header protected_oe property

protected string $header
return string

$template protected_oe property

protected string $template
return string

$templateEngine protected_oe property

protected EngineInterface,Symfony\Component\Templating $templateEngine
return Symfony\Component\Templating\EngineInterface

$widgetGroups protected_oe property

protected array $widgetGroups
return array

$widgets protected_oe property

protected WidgetInterface[],Sulu\Bundle\AdminBundle\Widgets $widgets
return Sulu\Bundle\AdminBundle\Widgets\WidgetInterface[]