function TwigTransTokenParser::decideForFork
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Template/TwigTransTokenParser.php \Drupal\Core\Template\TwigTransTokenParser::decideForFork()
- 10 core/lib/Drupal/Core/Template/TwigTransTokenParser.php \Drupal\Core\Template\TwigTransTokenParser::decideForFork()
- 11.x core/lib/Drupal/Core/Template/TwigTransTokenParser.php \Drupal\Core\Template\TwigTransTokenParser::decideForFork()
Detect a 'plural' switch or the end of a 'trans' tag.
File
-
core/
lib/ Drupal/ Core/ Template/ TwigTransTokenParser.php, line 67
Class
- TwigTransTokenParser
- A class that defines the Twig 'trans' token parser for Drupal.
Namespace
Drupal\Core\TemplateCode
public function decideForFork($token) {
return $token->test([
'plural',
'endtrans',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.