Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When a theme didn't have a base theme
property in their info metadata, exception will thrown with following message:
Missing required key ("base theme") in themes/custom/my_theme/my_theme.theme/my_theme.theme, see https://www.drupal.org/node/3066038
The correct path should be themes/custom/my_theme/my_theme.info.yml
Steps to reproduce
- Create custom theme
- Omit
base theme
property ininfo.yml
- Clear drupal cache
Proposed resolution
Use getPathname
to get the correct path
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3228963
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
el7cosmosComment #4
el7cosmosComment #5
joachim CreditAttribution: joachim as a volunteer commentedLGTM!
Comment #7
larowlanCommitted 9b0462f and pushed to 9.3.x. Thanks!
Because there's no risk of disruption here, I've backported this to 9.2.x