Attributes are not rendered when showing the source code
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3449634. -->
Reported by: [avpaderno](https://www.drupal.org/user/55077)
Related to !46
>>>
<p>(I apologize if this has been already reported; I looked at the last issues and did not find one.)</p>
<p>Looking at <a href="https://api.drupal.org/api/drupal/core%21modules%21system%21src%21Plugin%21ImageToolkit%21GDToolkit.php/11.x">GDToolkit.php</a>, for example, I noticed the attributes are not shown in the code.<br>
I was trying to understand how to convert the code for a module I maintain, and noticed there was the <code>use Drupal\Core\ImageToolkit\Attribute\ImageToolkit;</code> line which made me look <a href="https://git.drupalcode.org/project/drupal/-/blob/11.0.x/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php?ref_type=heads">at the code directly in the repository</a>, where I noticed the code is the following one.</p>
<pre>/**<br> * Defines the GD2 toolkit for image manipulation within Drupal.<br> */<br>#[ImageToolkit(<br> id: "gd",<br> title: new TranslatableMarkup("GD2 image manipulation toolkit"),<br>)]<br>class GDToolkit extends ImageToolkitBase {</pre>
issue