Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / dblog / src / Plugin / views / field / DblogMessage.php
index 3c682428439bc957d3fa2beed796a2c9bee3badb..fd18779f0465bc3699a7e5022beadc8bd3e1e479 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Drupal\dblog\Plugin\views\field;
 
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\views\Plugin\views\field\FieldPluginBase;
 use Drupal\views\ResultRow;
@@ -60,7 +60,7 @@ class DblogMessage extends FieldPluginBase {
 
     if ($this->options['replace_variables']) {
       $variables = unserialize($this->getvalue($values, 'variables'));
-      return SafeMarkup::format($value, (array) $variables);
+      return new FormattableMarkup($value, (array) $variables);
     }
     else {
       return $this->sanitizeValue($value);