You are here

test_theme.info.yml in Drupal 9

Same filename and directory in other branches
  1. 8 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. 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. classy/base:
  26. css:
  27. component:
  28. css/components/button.css: css/my-button.css
  29. css/components/collapse-processed.css: css/my-collapse-processed.css
  30. css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
  31. css/components/details.css: /themes/my_theme/css/my-details.css
  32. # Remove particular library assets.
  33. classy/dialog:
  34. css:
  35. component:
  36. css/components/dialog.css: false
  37. system/base:
  38. css:
  39. component:
  40. /core/themes/stable/css/system/components/js.module.css: false
  41. # It works for JS as well.
  42. core/jquery:
  43. js:
  44. assets/vendor/jquery/jquery.min.js: js/collapse.js
  45. # Use Drupal-relative paths.
  46. core/drupal.dropbutton:
  47. css:
  48. component:
  49. /core/themes/stable/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
  50. # Use stream wrappers.
  51. core/drupal.vertical-tabs:
  52. css:
  53. component:
  54. /core/themes/stable/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
  55. # Use a protocol-relative URI.
  56. core/drupal.displace:
  57. js:
  58. misc/displace.js: //my-server/my_theme/js/overridden.js
  59. # Use an absolute URI.
  60. core/jquery.farbtastic:
  61. css:
  62. component:
  63. assets/vendor/farbtastic/farbtastic.css: http://example.com/my_theme/css/farbtastic.css
  64. regions:
  65. content: Content
  66. left: Left
  67. right: Right