public function TwigTransTokenParser::decideForEnd in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Template/TwigTransTokenParser.php \Drupal\Core\Template\TwigTransTokenParser::decideForEnd()
Detect the end of a 'trans' tag.
File
- core/
lib/ Drupal/ Core/ Template/ TwigTransTokenParser.php, line 65
Class
- TwigTransTokenParser
- A class that defines the Twig 'trans' token parser for Drupal.
Namespace
Drupal\Core\TemplateCode
public function decideForEnd($token) {
return $token
->test('endtrans');
}