recipe.yml

core/recipes/administrator_role/recipe.yml

File

core/recipes/administrator_role/recipe.yml

View source
  1. name: 'Administrator role'
  2. description: 'Provides the Administrator role.'
  3. type: 'User role'
  4. config:
  5. actions:
  6. user.role.administrator:
  7. # If this role already exists, then this action has no effect. If it doesn't exist, we'll create it with the following values.
  8. createIfNotExists:
  9. id: administrator
  10. label: Administrator
  11. weight: 3
  12. is_admin: true

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