namespace Drupal\Core\Template

Same name in other branches
  1. 10 Drupal\Core\Template
  2. 11.x Drupal\Core\Template
  3. 8.9.x Drupal\Core\Template
Object name File name Summary
Attribute core/lib/Drupal/Core/Template/Attribute.php Collects, sanitizes, and renders HTML attributes.
AttributeArray core/lib/Drupal/Core/Template/AttributeArray.php A class that defines a type of Attribute that can be added to as an array.
AttributeBoolean core/lib/Drupal/Core/Template/AttributeBoolean.php A class that defines a type of boolean HTML attribute.
AttributeHelper core/lib/Drupal/Core/Template/AttributeHelper.php Helper class to deal with mixed array and Attribute operations.
AttributeString core/lib/Drupal/Core/Template/AttributeString.php A class that represents most standard HTML attributes.
AttributeValueBase core/lib/Drupal/Core/Template/AttributeValueBase.php Defines the base class for an attribute type.
DebugExtension core/lib/Drupal/Core/Template/DebugExtension.php A class providing Drupal Twig Debug extension.
TwigEnvironment core/lib/Drupal/Core/Template/TwigEnvironment.php A class that defines a Twig environment for Drupal.
TwigExtension core/lib/Drupal/Core/Template/TwigExtension.php A class providing Drupal Twig extensions.
TwigNodeTrans core/lib/Drupal/Core/Template/TwigNodeTrans.php A class that defines the Twig 'trans' tag for Drupal.
TwigNodeVisitor core/lib/Drupal/Core/Template/TwigNodeVisitor.php Provides a TwigNodeVisitor to change the generated parse-tree.
TwigPhpStorageCache core/lib/Drupal/Core/Template/TwigPhpStorageCache.php Provides an alternate cache storage for Twig using PhpStorage.
TwigSandboxPolicy core/lib/Drupal/Core/Template/TwigSandboxPolicy.php Default sandbox policy for Twig templates.
TwigTransTokenParser core/lib/Drupal/Core/Template/TwigTransTokenParser.php A class that defines the Twig 'trans' token parser for Drupal.

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