- Issue created by @damienmckenna
Hey, I am Gautham, at DrupalCon Atlanta, and I am working on testing this
- 🇺🇸United States smustgrave
Putting into NW as the pipeline has issues. But maybe someone from DrupalCon will pick up.
@arunsahijpal can you add the steps to reproduce this issue?
Also, I noticed there is a commit related to another issue(#3514939) in this merge request, can you provide some clarification on why it was part of this merge request?
- 🇮🇳India arunsahijpal
Hi @grallapa2,
As this issue in not like other issues which you can reproduce as I.S says that if you write a wrong attribute name in an element then the drupal just strips it silently without informing the user that he/she has used a wrong attribute so in order to follow a good practice we are going to log a warning before stripping the attribute.
So I've added a logger warning and a test case to check this.For running this testcase you can do
phpunit core/tests/Drupal/Tests/Core/Template/AttributeTest.php
and if you want to do manual testing on your cli then you may write this
drush php:eval ' $attributes = new \Drupal\Core\Template\Attribute([ "valid_attribute" => "value", "invalid attribute" => "value", ]); dump($attributes->toArray()); \Drupal::logger("debug")->notice("Attributes stored: @attributes", ["@attributes" => json_encode($attributes->toArray())]); '
and that issue no. mentioned in that commit is done by mistake, could you please correct it?
Feel free to ask any other query.
Thanks,
Arun - Status changed to Needs work
about 1 month ago 7:30pm 28 July 2025 - 🇺🇸United States dcam
It looks like this belongs to the theme system. If I'm wrong can the issue summary be updated with additional information about why this is relevant to the Link module?
- First commit to issue fork.
- 🇧🇷Brazil igorgoncalves
I made some fix and think we're almost there, one fail we've got on pipeline came from:
PHPUnit Unit tests on PHP 8.5
and it looks like fixed here: https://www.drupal.org/project/drupal/issues/3540646 📌 Fix deprecated readdir() without argument for PHP 8.5 Active
The other 2 functional test which fails i dont think is related to this issue.
- 🇺🇸United States smustgrave
Left a comment on the MR but don't believe HEAD is broken so would recommend rebasing the MR
- 🇧🇷Brazil igorgoncalves
Thank you so much @smustgrave.
can you check please if the constructor promotion change is good enough?