Commit 5d0c1a6e authored by xjm's avatar xjm

Issue #2553953 by alexpott, Wim Leers, Gábor Hojtsy: Remove SafeMarkup::set()...

Issue #2553953 by alexpott, Wim Leers, Gábor Hojtsy: Remove SafeMarkup::set() from RestExport and replace it with ViewsRenderPipelineSafeString
parent 764890d6
......@@ -15,6 +15,7 @@
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\State\StateInterface;
use Drupal\views\Plugin\views\display\ResponseDisplayPluginInterface;
use Drupal\views\Render\ViewsRenderPipelineSafeString;
use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\display\PathPluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -334,7 +335,7 @@ public function render() {
// executed by an HTML agent.
// @todo Decide how to support non-HTML in the render API in
// https://www.drupal.org/node/2501313.
$build['#markup'] = SafeMarkup::set($build['#markup']);
$build['#markup'] = ViewsRenderPipelineSafeString::create($build['#markup']);
}
parent::applyDisplayCachablityMetadata($build);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment