diff -u b/core/modules/views/src/Plugin/views/field/Custom.php b/core/modules/views/src/Plugin/views/field/Custom.php --- b/core/modules/views/src/Plugin/views/field/Custom.php +++ b/core/modules/views/src/Plugin/views/field/Custom.php @@ -65,7 +65,7 @@ */ public function render(ResultRow $values) { // Return the text, so the code never thinks the value is empty. - return new ViewsRenderPipelineMarkup(Xss::filterAdmin($this->options['alter']['text'])); + return ViewsRenderPipelineMarkup::create(Xss::filterAdmin($this->options['alter']['text'])); } /**