Problem/Motivation

Drupal GenerateTheme command looks for Drupal\prototype\StarterKit with capital K, but the file is named Starterkit.php with lowercase k. On Linux's case-sensitive filesystem (including inside DDEV), PSR-4 autoloading silently skips postProcess(), leaving the tests/ directory in the generated theme. Template discovery then picks up test templates over the real bridge templates, breaking paragraph rendering.

Steps to reproduce

1. Run the generator from the prototype directory — generator.php uses relative chdir calls and must be run with CWD set to the prototype theme folder:

ddev exec sh -c "cd web/themes/contrib/prototype && php generator.php -n my_theme -d 'My Theme' -p themes/custom"

2. Inspect web/themes/custom/my_theme/ — the tests/ directory is present.
3. Enable the theme, add a Slideshow paragraph to a node — the test template renders instead of the real bridge template.

Proposed resolution

Rename `src/Starterkit.php` to `src/StarterKit.php`, updates the class declaration, and corrects the `.starterkit.yml` ignore patterns.

Issue fork prototype-3586320

Command icon 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

grgcrlsn321 created an issue. See original summary.

grgcrlsn321’s picture

Here is a patch to test

grgcrlsn321’s picture

grgcrlsn321 changed the visibility of the branch 3586320-starterkit.php-class-name to hidden.

grgcrlsn321’s picture

Version: 5.5.0 » 5.x-dev
Status: Active » Needs review

Created MR with changes to update the StarterKit class name. Needs review.

  • jldust committed d8e96376 on 5.x
    Issue #3586320: Change Starterkit to StarterKit class
    
jldust’s picture

Status: Needs review » Fixed

This has been merged in and will be included in the next tagged release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.