recipe.yml

core/recipes/core_recommended_admin_theme/recipe.yml

File

core/recipes/core_recommended_admin_theme/recipe.yml

View source
  1. name: 'Admin theme'
  2. description: 'Sets up Claro as the administrative (backend) theme.'
  3. type: 'Themes'
  4. install:
  5. - claro
  6. - block
  7. config:
  8. # Leave existing blocks and menus as-is.
  9. strict: false
  10. import:
  11. system:
  12. - system.menu.account
  13. - system.menu.main
  14. claro:
  15. - block.block.claro_breadcrumbs
  16. - block.block.claro_content
  17. - block.block.claro_local_actions
  18. - block.block.claro_messages
  19. - block.block.claro_primary_local_tasks
  20. - block.block.claro_secondary_local_tasks
  21. actions:
  22. # Create this block dynamically so as not to conflict with the block created
  23. # by block_theme_initialize() when Claro is installed.
  24. block.block.claro_page_title:
  25. createIfNotExists:
  26. theme: claro
  27. plugin: page_title_block
  28. settings:
  29. id: page_title_block
  30. label: 'Page title'
  31. label_display: '0'
  32. provider: core
  33. setRegion: header
  34. setStatus: true
  35. setWeight: -30
  36. system.theme:
  37. simpleConfigUpdate:
  38. admin: claro

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