Install
Works with Drupal: ^10.1 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
drush bs-tc no longer copies the parent theme's Components namespaces into a new child theme.
Upgrade notes
Child themes created with drush bs-tc: bs-tc no longer copies the parent theme's components: namespaces into the child theme's info.yml (#3628921). A child theme created with an earlier version can still have the copied paths. With Components 3.x, each path that does not exist logs a "not a directory" warning on every cache rebuild. To clean up a child theme:
- In the child theme's info.yml, check every path under
components: namespaces:. The paths are relative to the child theme folder. - Delete each path whose folder does not exist in the child theme. Keep every path whose folder exists, because the child theme uses it to add or override templates.
- Delete a namespace that has no paths left.
- Delete the
components:key if it has no namespaces left. - Run
drush cr.
Templates in the parent theme's namespaces keep working after the cleanup, because Components gives a child theme the namespaces of its base themes.
Contributors (1)
pivica
Changelog
Issues: 1 issue resolved.
Changes since 2.0.0-alpha5:
Bug
- #3628921 by pivica: bs-tc copies the parent's components namespaces into the child theme info file, so Components logs "not a directory" warnings