\Taxonomy\EventTaxonomyHook

Main Hook Listener for Taxonomy plugin.

Summary

Methods
Properties
Constants
implementedEvents()
renderBlock()
settingsBlock()
afterSaveBlock()
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 Taxonomy plugin.

Taxonomy plugin has one built-in block that comes with every QuickAppsCMS installation: "Categories" which allows to create HTML categories lists.

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

array $options

Additional options as an array

Returns

string

afterSaveBlock()

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

Clear counters cache after block settings changes.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Block\Model\Entity\Block $block

The block that was saved

array $options

Additional options as an array

Returns

string