PHP Interface Sulu\Bundle\AdminBundle\Widgets\WidgetsHandlerInterface

Mostrar archivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
addWidget ( Sulu\Bundle\AdminBundle\Widgets\WidgetInterface $widget, string $alias ) add an widget to rendering process.
hasWidgetGroup ( $groupAlias ) : mixed return true of widget group exists.
render ( array $aliases, array $parameters = [] ) : string renders widgets for given aliases.
renderWidgetGroup ( string $groupAlias, array $parameters = [] ) : string renders a widget group.

Method Details

addWidget() public method

add an widget to rendering process.
public addWidget ( Sulu\Bundle\AdminBundle\Widgets\WidgetInterface $widget, string $alias )
$widget Sulu\Bundle\AdminBundle\Widgets\WidgetInterface
$alias string

hasWidgetGroup() public method

return true of widget group exists.
public hasWidgetGroup ( $groupAlias ) : mixed
$groupAlias
return mixed

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