Comments Action

This action redirects the user to the comments that have been posted on an article, blog entry or similar. The class for which this action should be used must implement the CommentSubjectInterface like for example the entity EnhavoBundleArticleBundleEntityArticle.php

Type comment
Options
Class Enhavo\Bundle\CommentBundle\Action\CommentsActionType
Parent Enhavo\Bundle\AppBundle\Action\AbstractActionType

Options

route

type: string default: enhavo_comment_comment_index

Defines which route should be used for the overlay.

actions:
    myAction:
        route: my_route

label

type: string default: comment.label.comments

Overwrite the default label. It will be translated over the translation service automatically (See translationDomain)

actions:
    myAction:
        label: myLabel
        # ... further option

translation_domain

type: string default: EnhavoCommentBundle

Overwrites the default translationDomain. The selected bundle implements a translation service for automatic translation all translatable designations, e.g. the label

actions:
    myAction:
        translation_domain: myTranslationDomain
        # ... further option

icon

type: string default: comment

Overwrite the default icon. The Icon is part of the clickable button.

actions:
    myAction:
        icon: myIcon
        # ... further option

permission

type: string default: null

Defines the minimum access rights a user needs to use this action.

actions:
    myAction:
        permission: myPermission
        # ... further options

hidden

type: boolean default: false

If value set true, the action is hidden

actions:
    myAction:
        hidden: true|false
        # ... further option