Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

Introduction to classes

A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.

See also

Objected-oriented programming conventions

File

core/core.api.php, line 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
TransportException class Symfony\Component\Mailer\Exception vendor/symfony/mailer/Exception/TransportException.php @author Fabien Potencier <fabien@symfony.com> 2 7
TransportExceptionInterface interface Symfony\Component\Mailer\Exception vendor/symfony/mailer/Exception/TransportExceptionInterface.php @author Fabien Potencier <fabien@symfony.com> 1 7
TransportFactoryInterface interface OpenTelemetry\SDK\Common\Export vendor/open-telemetry/sdk/Common/Export/TransportFactoryInterface.php 3 8
TransportFactoryInterface interface Symfony\Component\Mailer\Transport vendor/symfony/mailer/Transport/TransportFactoryInterface.php @author Konstantin Myakshin <molodchick@gmail.com> 1 2
TransportFactoryTestCase

since Symfony 7.2, use AbstractTransportFactoryTestCase instead

abstract class Symfony\Component\Mailer\Test vendor/symfony/mailer/Test/TransportFactoryTestCase.php A test case to ease testing Transport Factory.
TransportInterface interface Symfony\Component\Mailer\Transport vendor/symfony/mailer/Transport/TransportInterface.php Interface for all mailer transports. 3 6
TransportInterface interface OpenTelemetry\SDK\Common\Export vendor/open-telemetry/sdk/Common/Export/TransportInterface.php @psalm-template-covariant CONTENT_TYPE of string 2 12
Transports final class Symfony\Component\Mailer\Transport vendor/symfony/mailer/Transport/Transports.php @author Fabien Potencier <fabien@symfony.com> 1
TraversableContains abstract class PHPUnit\Framework\Constraint vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContains.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
TraversableContainsEqual final class PHPUnit\Framework\Constraint vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsEqual.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
TraversableContainsIdentical final class PHPUnit\Framework\Constraint vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsIdentical.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
TraversableContainsOnly final class PHPUnit\Framework\Constraint vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/TraversableContainsOnly.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
TraversableElement abstract class Behat\Mink\Element vendor/behat/mink/src/Element/TraversableElement.php Traversable element. 2 1
TraversablePatch class Prophecy\Doubler\ClassPatch vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/TraversablePatch.php Traversable interface patch. Forces classes that implement interfaces, that extend Traversable to also implement Iterator.
TraversableTypedDataInterface interface Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php An interface for typed data objects that can be traversed. 3 6
TraversalStrategy class Symfony\Component\Validator\Mapping vendor/symfony/validator/Mapping/TraversalStrategy.php Specifies whether and how a traversable object should be traversed. 3
Traverse class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Traverse.php Validates an object that needs to be traversed. 2
Traverser class Masterminds\HTML5\Serializer vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php Traverser for walking a DOM tree. 2
Traverser class Peast vendor/mck89/peast/lib/Peast/Traverser.php Nodes traverser class 1
TreeBuildingRules class Masterminds\HTML5\Parser vendor/masterminds/html5/src/HTML5/Parser/TreeBuildingRules.php Handles special-case rules for the DOM tree builder.
TriggerPreviewCommand class Drupal\views\Ajax core/modules/views/src/Ajax/TriggerPreviewCommand.php Provides an AJAX command for triggering the views live preview. 1
TrimmedBufferOutput class Symfony\Component\Console\Output vendor/symfony/console/Output/TrimmedBufferOutput.php A BufferedOutput that keeps only the last N chars. 1
TrueType final class SebastianBergmann\Type vendor/sebastian/type/src/type/TrueType.php
True_ final class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/True_.php Value Object representing the PseudoType 'False', which is a Boolean type. 1
Truncate class Drupal\Core\Database\Query core/lib/Drupal/Core/Database/Query/Truncate.php General class for an abstracted TRUNCATE operation. 3 4
Truncate class Drupal\mysql\Driver\Database\mysql core/modules/mysql/src/Driver/Database/mysql/Truncate.php MySQL implementation of \Drupal\Core\Database\Query\Truncate.
Truncate class Drupal\pgsql\Driver\Database\pgsql core/modules/pgsql/src/Driver/Database/pgsql/Truncate.php PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate.
Truncate class Drupal\sqlite\Driver\Database\sqlite core/modules/sqlite/src/Driver/Database/sqlite/Truncate.php SQLite implementation of \Drupal\Core\Database\Query\Truncate.
TrustedCallback class Drupal\Core\Security\Attribute core/lib/Drupal/Core/Security/Attribute/TrustedCallback.php Attribute to tell that a method is a trusted callback. 4
TrustedCallbackInterface interface Drupal\Core\Security core/lib/Drupal/Core/Security/TrustedCallbackInterface.php Interface to declare trusted callbacks. 28 30
TrustedHostsRequestFactory class Drupal\Core\Http core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php Provides a request factory for requests using host verification. 1
TrustedRedirectResponse class Drupal\Core\Routing core/lib/Drupal/Core/Routing/TrustedRedirectResponse.php Provides a redirect response which contains trusted URLs. 1
TryCatch class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php 1
TryStatement class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/TryStatement.php A node that represents a try-catch statement.
TuskInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/TuskInstaller.php Composer installer for 3rd party Tusk utilities @author Drew Ewing <drew@phenocode.com>
TwigCallableInterface interface Twig vendor/twig/twig/src/TwigCallableInterface.php @author Fabien Potencier <fabien@symfony.com> 1 3
TwigEnvironment class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigEnvironment.php A class that defines a Twig environment for Drupal. 1
TwigExtension class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigExtension.php A class providing Drupal Twig extensions.
TwigExtensionPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/TwigExtensionPass.php Adds the twig_extension_hash parameter to the container. 1
TwigFilter final class Twig vendor/twig/twig/src/TwigFilter.php Represents a template filter. 10
TwigFunction final class Twig vendor/twig/twig/src/TwigFunction.php Represents a template function. 15
TwigNodeCheckDeprecations class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigNodeCheckDeprecations.php A node that checks deprecated variable usage.
TwigNodeTrans class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigNodeTrans.php A class that defines the Twig 'trans' tag for Drupal.
TwigNodeVisitor class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigNodeVisitor.php Provides a TwigNodeVisitor to change the generated parse-tree.
TwigNodeVisitorCheckDeprecations class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigNodeVisitorCheckDeprecations.php Provides a Node Visitor to trigger errors if deprecated variables are used.
TwigPhpStorageCache class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigPhpStorageCache.php Provides an alternate cache storage for Twig using PhpStorage.
TwigSandboxPolicy class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigSandboxPolicy.php Default sandbox policy for Twig templates.
TwigSimpleCheckToStringNode final class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigSimpleCheckToStringNode.php Defines a twig node for simplifying CheckToStringNode.
TwigTest final class Twig vendor/twig/twig/src/TwigTest.php Represents a template test. 9
TwigTransTokenParser class Drupal\Core\Template core/lib/Drupal/Core/Template/TwigTransTokenParser.php A class that defines the Twig 'trans' token parser for Drupal.

Pagination

  • First page
  • Previous page
  • …
  • Page 192
  • Page 193
  • Page 194
  • Page 195
  • Page 196
  • Page 197
  • Page 198
  • Page 199
  • Page 200
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal