\Comment\EventCommentHook

Main Hook Listener for Comment plugin.

Summary

Methods
Properties
Constants
implementedEvents()
renderComment()
settingsDefaults()
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.

renderComment()

renderComment(\Cake\Event\Event $event, \Comment\Model\Entity\Comment $comment, array $options) : string

Renders a single Comment.

Parameters

\Cake\Event\Event $event

The event that was triggered

\Comment\Model\Entity\Comment $comment

The comment entity to render

array $options

Additional options given as an array

Returns

string —

HTML

settingsDefaults()

settingsDefaults(\Cake\Event\Event $event) : array

Defaults settings for Comment's settings form.

Parameters

\Cake\Event\Event $event

The event that was triggered

Returns

array