Problem/Motivation
There appears to be a regression and a bit of a WTF with the theme system currently. The theme system itself allows you to enable themes with a numeric value in the theme name but then the breakpoint system then throws an exception.
Drupal\breakpoint\InvalidBreakpointSourceException: Invalid value 'choice5k' for breakpoint source property. Breakpoint source property can only contain lowercase letters and underscores. in Drupal\breakpoint\Entity\Breakpoint->isValid() (line 170 of /.../core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php).
Steps to reproduce:
1) Copy stark into new theme with a numeric value in name. Rename info.yml and config files.
2) Enable theme.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2084401-numbers-in-theme-name-3.patch | 1.15 KB | Tharna |
#1 | 2084401-numbers-in-theme-name-1.patch | 1.19 KB | Tharna |
Comments
Comment #1
Tharna CreditAttribution: Tharna commentedHere is a patch to add numbers as allowed values for the brekpoint source check.
Comment #3
Tharna CreditAttribution: Tharna commentedResubmitting with correct paths this time.
Comment #4
neclimdulI love when an issue I forgot about suddenly have green patches. Seems reasonable enough to just fix the broken module. ;)
Comment #5
alexpottCommitted 63d0273 and pushed to 8.x. Thanks!