Skip to content
Snippets Groups Projects

Reroll for 10.3

Open Kostas Kourakis requested to merge issue/drupal-2952091:2952091-show-translatable-db into 11.x
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -2,7 +2,7 @@
namespace Drupal\dblog\Plugin\views\field;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Attribute\ViewsField;
use Drupal\views\Plugin\views\field\FieldPluginBase;
@@ -60,7 +60,7 @@ public function render(ResultRow $values) {
if ($this->options['replace_variables']) {
$variables = unserialize($this->getvalue($values, 'variables'));
return new FormattableMarkup($value, (array) $variables);
return new TranslatableMarkup($value, (array) $variables);
}
else {
return $this->sanitizeValue($value);
Loading