Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
@ -573,7 +573,7 @@ class TwigExtension extends \Twig_Extension {
|
|||
*
|
||||
* @param \Twig_Environment $env
|
||||
* A Twig_Environment instance.
|
||||
* @param mixed[]|\Traversable|NULL $value
|
||||
* @param mixed[]|\Traversable|null $value
|
||||
* The pieces to join.
|
||||
* @param string $glue
|
||||
* The delimiter with which to join the string. Defaults to an empty string.
|
||||
|
|
|
@ -169,6 +169,9 @@ class TwigNodeTrans extends \Twig_Node {
|
|||
}
|
||||
}
|
||||
}
|
||||
elseif (!$body->hasAttribute('data')) {
|
||||
throw new \Twig_Error_Syntax('{% trans %} tag cannot be empty');
|
||||
}
|
||||
else {
|
||||
$text = $body->getAttribute('data');
|
||||
}
|
||||
|
|
Reference in a new issue