test_theme.info.yml

Same filename in other branches
  1. 9 core/modules/system/tests/themes/test_theme/test_theme.info.yml
  2. 8.9.x core/modules/system/tests/themes/test_theme/test_theme.info.yml
  3. 11.x core/modules/system/tests/themes/test_theme/test_theme.info.yml
core/modules/system/tests/themes/test_theme/test_theme.info.yml

File

core/modules/system/tests/themes/test_theme/test_theme.info.yml

View source
  1. # Normally, themes may list CSS files like this, and if they exist in the theme
  2. # folder, then they get added to the page. If they have the same file name as a
  3. # module CSS file, then the theme's version overrides the module's version, so
  4. # that the module's version is not added to the page. Additionally, a theme may
  5. # have an entry like this one, without having the corresponding CSS file in the
  6. # theme's folder, and in this case, it just stops the module's version from
  7. # being loaded, and does not replace it with an alternate version. We have this
  8. # here in order for a test to ensure that this correctly prevents the module
  9. # version from being loaded, and that errors aren't caused by the lack of this
  10. # file within the theme folder.
  11. name: '<strong>Test theme</strong>'
  12. type: theme
  13. description: 'Theme for testing the theme system'
  14. version: VERSION
  15. base theme: starterkit_theme
  16. logo: images/logo2.svg
  17. libraries:
  18. - test_theme/global-styling
  19. libraries-override:
  20. # Replace an entire library.
  21. core/drupal.collapse: test_theme/collapse
  22. # Remove an entire library.
  23. core/drupal.progress: false
  24. # Replace particular library assets.
  25. starterkit_theme/base:
  26. css:
  27. component:
  28. css/components/button.css: css/my-button.css
  29. css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
  30. css/components/details.css: /themes/my_theme/css/my-details.css
  31. # Remove particular library assets.
  32. starterkit_theme/dialog:
  33. css:
  34. component:
  35. css/components/dialog.css: false
  36. system/base:
  37. css:
  38. component:
  39. /core/themes/stable9/css/system/components/js.module.css: false
  40. # It works for JS as well.
  41. core/drupal.batch:
  42. js:
  43. misc/batch.js: js/collapse.js
  44. # Use Drupal-relative paths.
  45. core/drupal.dropbutton:
  46. css:
  47. component:
  48. /core/themes/stable9/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
  49. # Use stream wrappers.
  50. core/drupal.vertical-tabs:
  51. css:
  52. component:
  53. /core/themes/stable9/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
  54. # Use a protocol-relative URI.
  55. core/drupal.displace:
  56. js:
  57. misc/displace.js: //my-server/my_theme/js/overridden.js
  58. # Use an absolute URI.
  59. core/drupal.announce:
  60. js:
  61. misc/announce.js: http://example.com/my_theme/js/announce.js
  62. regions:
  63. content: Content
  64. left: Left
  65. right: Right

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