namespace Drupal\Core\Template

Same name in other branches
  1. 11.x Drupal\Core\Template
  2. 9 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.
ComponentNodeVisitor core/lib/Drupal/Core/Template/ComponentNodeVisitor.php Provides a ComponentNodeVisitor to change the generated parse-tree.
ComponentsTwigExtension core/lib/Drupal/Core/Template/ComponentsTwigExtension.php The twig extension so Drupal can recognize the new code.
DebugExtension core/lib/Drupal/Core/Template/DebugExtension.php A class providing Drupal Twig Debug extension.
RemoveCheckToStringNodeVisitor core/lib/Drupal/Core/Template/RemoveCheckToStringNodeVisitor.php Defines a TwigNodeVisitor that replaces CheckToStringNodes.
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.
TwigNodeCheckDeprecations core/lib/Drupal/Core/Template/TwigNodeCheckDeprecations.php A node that checks deprecated variable usage.
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.
TwigNodeVisitorCheckDeprecations core/lib/Drupal/Core/Template/TwigNodeVisitorCheckDeprecations.php Provides a Node Visitor to trigger errors if deprecated variables are used.
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.
TwigSimpleCheckToStringNode core/lib/Drupal/Core/Template/TwigSimpleCheckToStringNode.php Defines a twig node for simplifying CheckToStringNode.
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.