Use a render array to generate image
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3419286. --> Reported by: [prudloff](https://www.drupal.org/user/3611858) Related to !30 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently the <code>img</code> tag is in the Twig template, this means it can't be altered by a preprocess (for example to add new attributes).</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>If <code>brand_image</code> was a render array containing the entire image, it could be more easily altered.</p>
issue