class Widgets (View source)

Methods

__construct(RequestStack $requestStack, QueueProcessor $queueProcessor, Environment $twig, CacheInterface $cache, Stopwatch $stopwatch)

No description

void
registerWidget(WidgetInterface $widget)

No description

string
renderWidgetByName(string $name, array $params = [])

No description

string
renderWidgetsForTarget(string $target, array $params = [])

No description

Collection
listWidgetsForTarget(string $target)

No description

Response
processQueue(Response $response)

No description

Details

__construct(RequestStack $requestStack, QueueProcessor $queueProcessor, Environment $twig, CacheInterface $cache, Stopwatch $stopwatch)

Parameters

RequestStack $requestStack
QueueProcessor $queueProcessor
Environment $twig
CacheInterface $cache
Stopwatch $stopwatch

void registerWidget(WidgetInterface $widget)

Parameters

WidgetInterface $widget

Return Value

void

string renderWidgetByName(string $name, array $params = [])

Parameters

string $name
array $params

Return Value

string

string renderWidgetsForTarget(string $target, array $params = [])

Parameters

string $target
array $params

Return Value

string

Collection listWidgetsForTarget(string $target)

Parameters

string $target

Return Value

Collection

Response processQueue(Response $response)

Parameters

Response $response

Return Value

Response