Update branding block output to prevent broken image
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3561920. --> Reported by: [pameeela](https://www.drupal.org/user/1431110) Related to !146 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The branding block always outputs an image, even if the logo isn't enabled, which results in a broken image on preview and in the block itself.</p> <p>We can add a conditional to only output the image if one is provided, and we can also show the site name if that is provided.</p> <p>After (with both enabled, which I don't think anyone would want):<br> <img src="https://www.drupal.org/files/issues/2025-12-08/Screenshot%202025-12-08%20at%201.51.37%E2%80%AFpm.png" alt=""></p> > Related issue: [Issue #3561919](https://www.drupal.org/node/3561919)
issue