recipe.yml

core/recipes/content_editor_role/recipe.yml

File

core/recipes/content_editor_role/recipe.yml

View source
  1. name: 'Content editor role'
  2. description: 'Provides the Content editor role.'
  3. type: 'User role'
  4. install:
  5. # Node provides the `view own unpublished content` permission.
  6. - node
  7. config:
  8. actions:
  9. user.role.content_editor:
  10. # If this role already exists, then this action has no effect. If it doesn't exist, we'll create it with the following values.
  11. createIfNotExists:
  12. id: content_editor
  13. label: 'Content editor'
  14. weight: 2
  15. is_admin: false
  16. permissions:
  17. - 'access administration pages'
  18. - 'view own unpublished content'

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