Skip to content
Snippets Groups Projects

Resolve #3431586 "D11"

All threads resolved!
Files
3
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Drupal\layout_builder_iframe_modal\Render\MainContent;
use Drupal\Component\Utility\DeprecationHelper;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\layout_builder_iframe_modal\Ajax\OpenIframeCommand;
use Drupal\Core\Routing\RouteMatchInterface;
@@ -60,7 +61,12 @@ class IframeRenderer extends DialogRenderer {
$title = isset($main_content['#title']) ? $main_content['#title'] : $this->titleResolver->getTitle($request, $route_match->getRouteObject());
if (is_array($title)) {
$title = $this->renderer->renderPlain($title);
$title = DeprecationHelper::backwardsCompatibleCall(
currentVersion: \Drupal::VERSION,
deprecatedVersion: '10.3',
currentCallable: fn() => $this->renderer->renderInIsolation($title),
deprecatedCallable: fn() => $this->renderer->renderPlain($title),
);
}
$options = $request->request->all('dialogOptions');
Loading