test_theme.info.yml

Same filename and directory in other branches
  1. 9 core/modules/system/tests/themes/test_theme/test_theme.info.yml
  2. 10 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: classy
  16. core: 8.x
  17. logo: images/logo2.svg
  18. libraries:
  19. - test_theme/global-styling
  20. libraries-override:
  21. # Replace an entire library.
  22. core/drupal.collapse: test_theme/collapse
  23. # Remove an entire library.
  24. core/drupal.progress: false
  25. # Replace particular library assets.
  26. classy/base:
  27. css:
  28. component:
  29. css/components/button.css: css/my-button.css
  30. css/components/collapse-processed.css: css/my-collapse-processed.css
  31. css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
  32. css/components/details.css: /themes/my_theme/css/my-details.css
  33. # Remove particular library assets.
  34. classy/dialog:
  35. css:
  36. component:
  37. css/components/dialog.css: false
  38. system/base:
  39. css:
  40. component:
  41. /core/themes/stable/css/system/components/js.module.css: false
  42. # It works for JS as well.
  43. core/jquery:
  44. js:
  45. assets/vendor/jquery/jquery.min.js: js/collapse.js
  46. # Use Drupal-relative paths.
  47. core/drupal.dropbutton:
  48. css:
  49. component:
  50. /core/themes/stable/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
  51. # Use stream wrappers.
  52. core/drupal.vertical-tabs:
  53. css:
  54. component:
  55. /core/themes/stable/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
  56. # Use a protocol-relative URI.
  57. core/jquery.ui:
  58. css:
  59. component:
  60. assets/vendor/jquery.ui/themes/base/core.css: //my-server/my_theme/css/jquery_ui.css
  61. # Use an absolute URI.
  62. core/jquery.farbtastic:
  63. css:
  64. component:
  65. assets/vendor/farbtastic/farbtastic.css: http://example.com/my_theme/css/farbtastic.css
  66. regions:
  67. content: Content
  68. left: Left
  69. right: Right

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