Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / shortcut / shortcut.module
index 8ace7bdb10b0d76d813268faf9d1e7510df1efa3..2046271562c931e7fc2f3aa5d9635c7fe7049b9a 100644 (file)
@@ -5,7 +5,7 @@
  * Allows users to manage customizable lists of shortcut links.
  */
 
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
 use Drupal\Core\Access\AccessResult;
 use Drupal\Core\Cache\Cache;
 use Drupal\Core\Routing\RouteMatchInterface;
@@ -356,7 +356,7 @@ function shortcut_preprocess_page_title(&$variables) {
           ],
         ],
         '#type' => 'link',
-        '#title' => SafeMarkup::format('<span class="shortcut-action__icon"></span><span class="shortcut-action__message">@text</span>', ['@text' => $link_text]),
+        '#title' => new FormattableMarkup('<span class="shortcut-action__icon"></span><span class="shortcut-action__message">@text</span>', ['@text' => $link_text]),
         '#url' => Url::fromRoute($route_name, $route_parameters),
         '#options' => ['query' => $query],
         '#attributes' => [