\Locale\EventLocaleHook

Main Hook Listener for Locale plugin.

Summary

Methods
Properties
Constants
implementedEvents()
renderBlock()
settingsBlock()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

implementedEvents()

implementedEvents() : void

Returns a list of hooks this Hook Listener is implementing. When the class is registered in an event manager, each individual method will be associated with the respective event.

renderBlock()

renderBlock(\Cake\Event\Event $event, \Block\Model\Entity\Block $block, array $options) : string

Renders all blocks registered by Locale plugin.

Locale plugin has one built-in block that comes with every QuickAppsCMS installation: "Language witcher" which allows users to change from one language to another.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Block\Model\Entity\Block $block

The block being rendered

array $options

Additional options as an array

Returns

string

settingsBlock()

settingsBlock(\Cake\Event\Event $event, \Block\Model\Entity\Block $block, array $options) : string

Renders block's settings form elements.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Block\Model\Entity\Block $block

The block being rendered

array $options

Additional options as an array

Returns

string