render(\Cake\ORM\Entity $entity) : string
Renders a comments section for given entity.
Entity's comments must be in the
comments property. It is automatically
filled when using
The following events will be triggered:
CommentHelper.beforeRender: Triggered before default rendering operation starts. By stopping this event, you can return the final value of the rendering operation.
CommentHelper.afterRender: Triggered after default rendering operation is completed. Listeners will receive the rendered output. By stopping this event, you can return the final value of the rendering operation.
Any valid entity
When comment component was not loaded