function TwigTransTokenParser::decideForEnd

Same name in other branches
  1. 9 core/lib/Drupal/Core/Template/TwigTransTokenParser.php \Drupal\Core\Template\TwigTransTokenParser::decideForEnd()
  2. 8.9.x core/lib/Drupal/Core/Template/TwigTransTokenParser.php \Drupal\Core\Template\TwigTransTokenParser::decideForEnd()
  3. 10 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 74

Class

TwigTransTokenParser
A class that defines the Twig 'trans' token parser for Drupal.

Namespace

Drupal\Core\Template

Code

public function decideForEnd($token) {
    return $token->test('endtrans');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.