Unverified Commit 9c2be570 authored by larowlan's avatar larowlan
Browse files

Issue #3241271 by alexpott: shortcut_preprocess_page_title() causes deprecations on PHP 8.1

parent 469425a4
......@@ -256,7 +256,7 @@ function shortcut_preprocess_page_title(&$variables) {
// Replicate template_preprocess_html()'s processing to get the title in
// string form, so we can set the default name for the shortcut.
$name = $variables['title'];
$name = $variables['title'] ?? '';
if (is_array($name)) {
$name = \Drupal::service('renderer')->render($name);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment