diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php index 99c573a..affc38d 100644 --- a/core/lib/Drupal/Core/Template/TwigExtension.php +++ b/core/lib/Drupal/Core/Template/TwigExtension.php @@ -475,11 +475,12 @@ public function escapeFilter(\Twig_Environment $env, $arg, $strategy = 'html', $ /** * Wrapper around render() for twig printed output. * - * When $arg is passed as an object which does not implement __toString(), - * RenderableInterface or toString(). Other objects are casted to string. - * If it already implements __toString(), it will throw an exception. - * However in the case that the object is an instance of a Twig_Markup object - * it is returned directly to support auto escaping. + * If an object is passed which does not implement __toString(), + * RenderableInterface or toString() method an exception is thrown; + * Other objects are casted to string. If it already implements + * __toString(), it will throw an exception. However in the case that the + * object is an instance of a Twig_Markup object it is returned directly + * to support auto escaping. * * If an array is passed it is rendered via render() and scalar values are * returned directly.