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 |
---|---|---|---|---|---|---|---|---|
ThemeRegistryLoader | class | Drupal\Core\Template\Loader | core/ |
Loads templates based on information from the Drupal theme registry. | ||||
ThemeSettings | class | Drupal\Core\Theme | core/ |
Provides a configuration API wrapper for runtime merged theme settings. | 1 | |||
ThemeSettings | class | Drupal\system\Plugin\migrate\source\d7 | core/ |
Drupal 7 theme settings source from database. | ||||
ThemeSettings | class | Drupal\system\Plugin\migrate\destination\d7 | core/ |
Persist theme settings to the config system. | ||||
ThemeSettingsForm | class | Drupal\system\Form | core/ |
Displays theme configuration for entire site and individual themes. | 1 | |||
ThemeSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
\DrupalPractice\Sniffs\FunctionCalls\Checks that theme functions are not directly called. | ||||
ThirdPartySettingsInterface | interface | Drupal\Core\Config\Entity | core/ |
Interface for configuration entities to store third party information. | 4 | 5 | ||
This | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the '$this' pseudo-type. | 1 | |||
ThisExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents the "this" keyword. | ||||
ThisTypeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
7 | ||||
Thread | class | Drupal\comment\Plugin\views\sort | core/ |
Sort handler for ordering by thread. | ||||
ThreeColumnLayout | class | Drupal\layout_builder\Plugin\Layout | core/ |
Configurable three column layout plugin class. | 1 | |||
Thresholds | final class | SebastianBergmann\CodeCoverage\Report | vendor/ |
@psalm-immutable | 5 | |||
Throwable | final class | PHPUnit\Event\Code | vendor/ |
@psalm-immutable | 10 | |||
ThrowableBuilder | final class | PHPUnit\Event\Code | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ThrowablePatch | class | Prophecy\Doubler\ClassPatch | vendor/ |
|||||
ThrowableToStringMapper | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ThrowableUtils | class | Symfony\Component\ErrorHandler | vendor/ |
@internal | ||||
Throwing | class | PhpParser\ErrorHandler | vendor/ |
Error handler that handles all errors by throwing them. | ||||
ThrowingCasterException | class | Symfony\Component\VarDumper\Exception | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 2 | |||
ThrowPromise | class | Prophecy\Promise | vendor/ |
Throws predefined exception. | ||||
Throws | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {throws tag in a Docblock. | 1 | |||
ThrowsTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
1 | ||||
ThrowStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents the throw statement. For example: throw err | ||||
Throw_ | class | PhpParser\Node\Expr | vendor/ |
|||||
ThumbnailDownloader | class | Drupal\media\Plugin\QueueWorker | core/ |
Process a queue of media items to fetch their thumbnails. | ||||
Ticket | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
Tid | class | Drupal\taxonomy\Plugin\views\argument_default | core/ |
Taxonomy tid default argument. | ||||
Time | class | Drupal\Component\Datetime | core/ |
Provides a class for obtaining system time. | 2 | |||
Time | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid time that follows the H:i:s format. | ||||
Time | class | Drupal\views\Plugin\views\cache | core/ |
Simple caching of query results for Views displays. | 1 | |||
Time | final class | Ramsey\Uuid\Type | vendor/ |
A value object representing a timestamp | 9 | |||
TimeConverterInterface | interface | Ramsey\Uuid\Converter | vendor/ |
A time converter converts timestamps into representations that may be used in UUIDs | 4 | 23 | ||
TimeDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
TimeEfficientLongestCommonSubsequenceCalculator | final class | SebastianBergmann\Diff | vendor/ |
|||||
TimeGeneratorFactory | class | Ramsey\Uuid\Generator | vendor/ |
TimeGeneratorFactory retrieves a default time generator, based on the environment | 1 | |||
TimeGeneratorInterface | interface | Ramsey\Uuid\Generator | vendor/ |
A time generator generates strings of binary data based on a node ID, clock sequence, and the current time | 3 | 2 | ||
TimeInterface | interface | Drupal\Component\Datetime | core/ |
Defines an interface for obtaining system time. | 1 | 66 | ||
TimeInterval | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for time intervals. | ||||
Timeout | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\Timeout class | ||||
TimeoutException | final class | SebastianBergmann\Invoker | vendor/ |
2 | ||||
Timeouts | class | WebDriver | vendor/ |
WebDriver\Timeouts class | ||||
TimeProviderInterface | interface | Ramsey\Uuid\Provider | vendor/ |
A time provider retrieves the current time | 2 | 5 | ||
Timer | class | Drupal\Component\Utility | core/ |
Provides helpers to use timers throughout a request. | 3 | |||
Timer | final class | SebastianBergmann\Timer | vendor/ |
4 | ||||
TimerCallback | final class | Revolt\EventLoop\Internal | vendor/ |
@internal | 4 | |||
TimerQueue | final class | Revolt\EventLoop\Internal | vendor/ |
Uses a binary tree stored in an array to implement a heap. | 1 | |||
TimeSinceStartOfRequestNotAvailableException | final class | SebastianBergmann\Timer | vendor/ |
|||||
TimeSourceException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that the source of time encountered an error | 1 | |||
TimeSpan | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The time span data type represents durations as number of seconds. |