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