class PluginLayoutListener

Class PluginLayoutListener is injected as empire.layoute.event.listener service. PluginLayoutListener is listener class for handling a logic for dispatched events

Constants

LAYOUT_SIGNAL

The event listener receives an PluginLayoutEvent

LAYOUT_CHANGED_EVENT

The event listener receives an LayoutAsyncEvent

LAYOUT_MULTIPLE_INSTANCE_GET_PLUGINS

The event listener receives an PluginMultipleInstanceEvent

Methods

__construct(Client $cache, EventDispatcherInterface $dispatcher)

PluginLayoutListener constructor.

asyncRegenerateLayoutCache()

Regenerate layouts on kernel.terminate event

processSignal(PluginLayoutEvent $event)

Signal regenerate layouts

Details

at line 66
__construct(Client $cache, EventDispatcherInterface $dispatcher)

PluginLayoutListener constructor.

Parameters

Client $cache
EventDispatcherInterface $dispatcher

at line 75
asyncRegenerateLayoutCache()

Regenerate layouts on kernel.terminate event

at line 89
processSignal(PluginLayoutEvent $event)

Signal regenerate layouts

Parameters

PluginLayoutEvent $event