Files
DrupalTutorial/core/recipes/comment_base/recipe.yml
2024-07-15 12:33:27 +02:00

27 lines
706 B
YAML
Executable File

name: 'Default comments'
description: 'Allows commenting on content.'
type: 'Comment type'
install:
- comment
- node
- views
config:
import:
comment:
- core.entity_view_mode.comment.full
- field.storage.comment.comment_body
- system.action.comment_delete_action
- system.action.comment_publish_action
- system.action.comment_save_action
- system.action.comment_unpublish_action
- views.view.comment
- views.view.comments_recent
actions:
user.role.authenticated:
grantPermissions:
- 'access comments'
- 'post comments'
- 'skip comment approval'
user.role.anonymous:
grantPermission: 'access comments'