diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php index 99e807a..73b81c2 100644 --- a/core/lib/Drupal/Core/Template/TwigExtension.php +++ b/core/lib/Drupal/Core/Template/TwigExtension.php @@ -369,6 +369,9 @@ public function attachLibrary($library) { * * @return string|null * The escaped, rendered output, or NULL if there is no valid output. + * + * @throws \Exception + * When the object cannot be printed. */ public function escapeFilter(\Twig_Environment $env, $arg, $strategy = 'html', $charset = NULL, $autoescape = FALSE) { // Check for a numeric zero int or float. @@ -447,6 +450,9 @@ public function escapeFilter(\Twig_Environment $env, $arg, $strategy = 'html', $ * @return mixed * The rendered output or an Twig_Markup object. * + * @throws \Exception + * When the object cannot be printed. + * * @see render * @see TwigNodeVisitor */