DialogRenderer::getTitleAsStringable() does not support all return types of TitleResolverInterface::getTitle()

Created on 28 April 2024, 8 months ago
Updated 20 May 2024, 7 months ago

Problem/Motivation

πŸ› Broken title in modal dialog when title is a render array Fixed introduced a regression for routes that return a string or array response.

Steps to reproduce

https://www.drupal.org/project/moderation_sidebar β†’ is one module that causes this error:

Error: Call to a member function render() on string in Drupal\Core\Render\MainContent\DialogRenderer->getTitleAsStringable()

Proposed resolution

Just like the #title check, support both that and getTitle() responses to be an array.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
RenderΒ  β†’

Last updated 5 days ago

Created by

πŸ‡¨πŸ‡­Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024