recipe.yml

core/recipes/comment_base/recipe.yml

File

core/recipes/comment_base/recipe.yml

View source
  1. name: 'Default comments'
  2. description: 'Allows commenting on content.'
  3. type: 'Comment type'
  4. install:
  5. - comment
  6. - node
  7. - views
  8. config:
  9. strict:
  10. # Treat field storages strictly, since they influence the database layout.
  11. - field.storage.comment.comment_body
  12. - field.storage.node.comment
  13. import:
  14. comment:
  15. - core.entity_view_mode.comment.full
  16. - field.storage.comment.comment_body
  17. - system.action.comment_delete_action
  18. - system.action.comment_publish_action
  19. - system.action.comment_save_action
  20. - system.action.comment_unpublish_action
  21. - views.view.comment
  22. - views.view.comments_recent
  23. actions:
  24. user.role.authenticated:
  25. grantPermissions:
  26. - 'access comments'
  27. - 'post comments'
  28. - 'skip comment approval'
  29. user.role.anonymous:
  30. grantPermission: 'access comments'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.