Closed (duplicate)
Project:
Drupal core
Version:
9.3.x-dev
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Aug 2016 at 11:54 UTC
Updated:
27 Apr 2022 at 15:03 UTC
Jump to comment: Most recent
I don't now this is error or it is normal.
If you have Profile and Theme whit same Machine name, and Profile need to do default theme, curent theme.
Then.
In your Drupal theme can see libraries. You can't add css and js in theme.
Add in .info
libraries:
- mytheme/global-css
and in .libraries.yml
global-css:
css:
theme:
css/main.css: {}
Result:
Nothing change main.css don't exist.
Profile machine name is 'mytheme'
P.S. Sorry for my English if something is wrong.
Comments
Comment #11
catchThis isn't supported - both modules/profiles and themes can define hooks, so you would only be able to define hook_form_alter() in one of them.
Marking duplicate of #371375: Do not allow a module and theme to use the same name..