- Issue created by @fgm
- 🇫🇷France fgm Paris, France
As @james.williams noticed, attributes are available in all template, but what make it special here is the fact that some keys are specifically defined, so they should be available from the render array level, without having to introduce them in a preprocess hook.
This is already present in core in the following theme hooks:
- (module): (hook)
- book: book_tree
- file: file_link
- system: admin_block
- twig_theme_test: twig_theme_test_filter
- toolbar: menu_toolbar
- update: update_version
- user: username
- views_ui: views_ui_container
- last update
over 1 year ago 29,446 pass - Status changed to Needs review
over 1 year ago 7:32am 20 July 2023 - Status changed to Needs work
over 1 year ago 1:43pm 20 July 2023 - 🇫🇷France fgm Paris, France
This just works, but I expect that for core we would want a test demonstrating that the feature works, and which fails without the included fix.
- 🇮🇳India Abhijith S
- Status changed to Needs review
12 months ago 10:23am 12 January 2024 - Status changed to Needs work
12 months ago 2:46pm 12 January 2024 - 🇺🇸United States smustgrave
Ran test-only feature
1) Drupal\Tests\system\Kernel\Common\AddFeedTest::testFeedIconAttributes Failed asserting that an array is not empty. /builds/issue/drupal-3371937/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122 /builds/issue/drupal-3371937/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /builds/issue/drupal-3371937/core/modules/system/tests/src/Kernel/Common/AddFeedTest.php:114 /builds/issue/drupal-3371937/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 FAILURES! Tests: 3, Assertions: 9, Failures: 1.
Issue summary is complete.
But MR is pointing at 10.1.x should be 11.x
- Status changed to Needs review
8 months ago 1:13pm 9 May 2024 - Status changed to Needs work
8 months ago 2:22pm 9 May 2024 - 🇺🇸United States smustgrave
Can we add before/after screenshots to the User Interface section. Make reviews much faster.
Is the MR meant to be draft btw?
- 🇮🇳India yash.rode pune
Below are the before after screen shot which shoes that the class
some-class
getting added once the MR is applied.
Before:
After:
- Status changed to Needs review
8 months ago 6:15am 10 May 2024 - 🇮🇳India yash.rode pune
#3371937-18: Theme declaration and templates mismatch for feed_icon → attached before-after screenshots.
- 🇺🇸United States smustgrave
Added to the issue summary.
Added a small nitpicky change directly to the MR.
Hiding the other
Wish we had that feature ui_patterns has where everything naturally has attributes array but change here makes sense and does seem to address the problem mentioned.
Thanks for the screenshots!
- 🇺🇸United States smustgrave
smustgrave → changed the visibility of the branch 3371937-theme-declaration-and to hidden.
- Status changed to RTBC
8 months ago 12:36pm 10 May 2024 -
alexpott →
committed 2d32ea49 on 10.3.x
Issue #3371937 by yash.rode, Abhijith S, smustgrave, fgm: Theme...
-
alexpott →
committed 2d32ea49 on 10.3.x
-
alexpott →
committed fa05fb7a on 10.4.x
Issue #3371937 by yash.rode, Abhijith S, smustgrave, fgm: Theme...
-
alexpott →
committed fa05fb7a on 10.4.x
-
alexpott →
committed 5923aeae on 11.0.x
Issue #3371937 by yash.rode, Abhijith S, smustgrave, fgm: Theme...
-
alexpott →
committed 5923aeae on 11.0.x
-
alexpott →
committed 01da0fd9 on 11.x
Issue #3371937 by yash.rode, Abhijith S, smustgrave, fgm: Theme...
-
alexpott →
committed 01da0fd9 on 11.x
- Status changed to Fixed
8 months ago 7:01am 12 May 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Committed and pushed 01da0fd920 to 11.x and 5923aeaed8 to 11.0.x and fa05fb7a93 to 10.4.x and 2d32ea4961 to 10.3.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.