X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement.php;h=682f236163c644b78bccdcc5ee562b39556701a3;hp=e394a399465fbfb4b08de8c82f72a021cda57c89;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Core/Render/Element.php b/web/core/lib/Drupal/Core/Render/Element.php index e394a3994..682f23616 100644 --- a/web/core/lib/Drupal/Core/Render/Element.php +++ b/web/core/lib/Drupal/Core/Render/Element.php @@ -2,7 +2,7 @@ namespace Drupal\Core\Render; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Access\AccessResultInterface; /** @@ -94,7 +94,7 @@ class Element { // Only trigger an error if the value is not null. // @see https://www.drupal.org/node/1283892 elseif (isset($value)) { - trigger_error(SafeMarkup::format('"@key" is an invalid render array key', ['@key' => $key]), E_USER_ERROR); + trigger_error(new FormattableMarkup('"@key" is an invalid render array key', ['@key' => $key]), E_USER_ERROR); } } $i++;