summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Render
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-05-01 15:14:09 (GMT)
committerNathaniel Catchpole2018-05-01 15:14:09 (GMT)
commit45bc05523f1b1adf0962a5b2947edb8cdec9371d (patch)
treea31e26b2c91075ef9c89a157fa0380eae4c1e8e9 /core/lib/Drupal/Core/Render
parent2e8be78f7f54c3a2949780b9b1ed30e27ef5874a (diff)
Issue #2958429 by alexpott: Properly deprecate SafeMarkup::format()
Diffstat (limited to 'core/lib/Drupal/Core/Render')
-rw-r--r--core/lib/Drupal/Core/Render/Element.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Render/Element.php b/core/lib/Drupal/Core/Render/Element.php
index e394a39..682f236 100644
--- a/core/lib/Drupal/Core/Render/Element.php
+++ b/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++;