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

Pagination

  • First page
  • Previous page
  • …
  • Page 187
  • Page 188
  • Page 189
  • Page 190
  • Page 191
  • Page 192
  • Page 193
  • Page 194
  • Page 195
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal