- Issue created by @mabho
- Status changed to Fixed
5 months ago 8:45pm 29 June 2024 - Status changed to Fixed
5 months ago 8:46pm 29 June 2024
Starting on Drupal 10.3, the characters that point if theme suggestions are being used or not changed. Instead of the default *
(inactive) and x
(active), character indicators are now ▪️
(inactive), and ✅ (active).
The change, which is documented under this issue queue ( https://www.drupal.org/project/drupal/issues/3420709 ✨ Make it more obvious that a Twig template is overridden Fixed ), and is delivered under this commit (https://git.drupalcode.org/project/drupal/-/commit/e5cd97f1f0f1904aa51da...), might break the mechanism that lists active and inactive theme suggestions.
Another change being introduced is affecting the comment that carries the template file path: BEGIN CUSTOM TEMPLATE OUTPUT
, instead of BEGIN OUTPUT
. This also needs to be fixed with this ticket.
Run Visual Debugger on a Drupal site with version 10.3.x installed. When selecting an element, there will probably be issues with the visual indication of selected and unselected elements.
Improve method pasreListOnOffRegexpOutput
in themeElement.js
so that it can parse both characters mentioned above, both the old approach (up to Drupal 10.2.x) and the new (starting on Drupal 10.3.x). Also, let's fix a typo in the method name (parseListOnOffRegexpOutput
instead of pasreListOnOffRegexpOutput
).
Improve method regexGetTemplateFilePath()
to account for the new file path string pattern.
Improve the method mentioned above and make it more flexible.
There should be no user interface changes being reflected to the end-user.
Fixed
1.0
Code