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
Timestamp class Drupal\Core\TypedData\Plugin\DataType core/lib/Drupal/Core/TypedData/Plugin/DataType/Timestamp.php The timestamp data type. 2 1
Timestamp class GPBMetadata\Google\Protobuf vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Timestamp.php
Timestamp class Google\Protobuf vendor/google/protobuf/src/Google/Protobuf/Timestamp.php A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the…
TimestampAgoFormatter class Drupal\Core\Field\Plugin\Field\FieldFormatter core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampAgoFormatter.php Plugin implementation of the 'timestamp' formatter as time ago. 1 1
TimestampBase class Google\Protobuf\Internal vendor/google/protobuf/src/Google/Protobuf/Internal/TimestampBase.php Base class for Google\Protobuf\Timestamp, this contains hand-written convenience methods. 1
TimestampDatetimeWidget class Drupal\Core\Datetime\Plugin\Field\FieldWidget core/lib/Drupal/Core/Datetime/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php Plugin implementation of the 'datetime timestamp' widget.
TimestampFirstCombCodec class Ramsey\Uuid\Codec vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php TimestampFirstCombCodec encodes and decodes COMBs, with the timestamp as the first 48 bits
TimestampFormatter class Drupal\Core\Field\Plugin\Field\FieldFormatter core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/TimestampFormatter.php Plugin implementation of the 'timestamp' formatter.
TimestampItem class Drupal\Core\Field\Plugin\Field\FieldType core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php Defines the 'timestamp' entity field type. 1 1
TimestampItemNormalizer class Drupal\serialization\Normalizer core/modules/serialization/src/Normalizer/TimestampItemNormalizer.php Converts values for TimestampItem to and from common formats. 2
TimestampLastCombCodec class Ramsey\Uuid\Codec vendor/ramsey/uuid/src/Codec/TimestampLastCombCodec.php TimestampLastCombCodec encodes and decodes COMBs, with the timestamp as the last 48 bits
TimestampNormalizer class Drupal\serialization\Normalizer core/modules/serialization/src/Normalizer/TimestampNormalizer.php Converts values for the Timestamp data type to and from common formats. 2
Timestamps class Seld\PharUtils vendor/seld/phar-utils/src/Timestamps.php 1
TimeTrait trait Ramsey\Uuid\Rfc4122 vendor/ramsey/uuid/src/Rfc4122/TimeTrait.php Provides common functionality for getting the time from a time-based UUID 1
TimeValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/TimeValidator.php @author Bernhard Schussek <bschussek@gmail.com>
Timezone class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Timezone.php Validates that a value is a valid timezone identifier.
TimeZone class Drupal\system\Plugin\migrate\process\d6 core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php Process the D6 Timezone offset into a D8 compatible timezone name.
TimeZoneCacheContext class Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Defines the TimeZoneCacheContext service, for "per time zone" caching.
TimezoneController class Drupal\system\Controller core/modules/system/src/Controller/TimezoneController.php Provides a callback for finding a time zone identifier.
TimeZoneFormHelper class Drupal\Core\Datetime core/lib/Drupal/Core/Datetime/TimeZoneFormHelper.php Helper class for dealing with timezones. 7
TimeZoneItem class Drupal\user core/modules/user/src/TimeZoneItem.php Defines a custom field item class for the 'timezone' user entity field. 1
TimeZoneResolver class Drupal\system core/modules/system/src/TimeZoneResolver.php Event handler that resolves time zone based on site and user configuration. 2
TimezoneValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/TimezoneValidator.php Validates whether a value is a valid timezone identifier.
Timing class PHP_CodeSniffer\Util vendor/squizlabs/php_codesniffer/src/Util/Timing.php 9
TInHookMenuSniff class Drupal\Sniffs\Semantics vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/TInHookMenuSniff.php Checks that t() is not used in hook_menu().
TInHookSchemaSniff class Drupal\Sniffs\Semantics vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/TInHookSchemaSniff.php Checks that t() is not used in hook_schema().
Title class Drupal\views\Plugin\views\area core/modules/views/src/Plugin/views/area/Title.php Views area title override handler.
TitleBlockPluginInterface interface Drupal\Core\Block core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php The interface for "title" blocks. 1 3
TitleResolver class Drupal\Core\Controller core/lib/Drupal/Core/Controller/TitleResolver.php Provides the default implementation of the title resolver interface.
TitleResolverInterface interface Drupal\Core\Controller core/lib/Drupal/Core/Controller/TitleResolverInterface.php Defines a class which knows how to generate the title from a given route. 1 4
TLD class Egulias\EmailValidator\Warning vendor/egulias/email-validator/src/Warning/TLD.php 1
TlsHelper

Use composer/ca-bundle and composer/composer 2.2 if you still need PHP 5 compatibility, this class will be removed in Composer 3.0

final class Composer\Util vendor/composer/composer/src/Composer/Util/TlsHelper.php @author Chris Smith <chris@cs278.org>
TodoCommentSniff class Drupal\Sniffs\Commenting vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Commenting/TodoCommentSniff.php Parses and verifies that comments use the correct @todo format.
TodoSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Commenting/TodoSniff.php
Token class Symfony\Component\CssSelector\Parser vendor/symfony/css-selector/Parser/Token.php CSS selector token. 8
Token class TheSeer\Tokenizer vendor/theseer/tokenizer/src/Token.php
Token class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Token.php Stores token data in a hidden form field.
Token class PhpParser vendor/nikic/php-parser/lib/PhpParser/Token.php A PHP token. On PHP 8.0 this extends from PhpToken. 9
Token class Drupal\Core\Utility core/lib/Drupal/Core/Utility/Token.php Drupal placeholder/token replacement system. 3
Token final class Twig vendor/twig/twig/src/Token.php @author Fabien Potencier <fabien@symfony.com> 22
Token class Peast\Syntax vendor/mck89/peast/lib/Peast/Syntax/Token.php A token emitted by the tokenizer. 2
Token final class Doctrine\Common\Lexer vendor/doctrine/lexer/src/Token.php @template T of UnitEnum|string|int @template V of string|int @implements ArrayAccess<string,mixed> 2
TokenCollection class TheSeer\Tokenizer vendor/theseer/tokenizer/src/TokenCollection.php
TokenCollectionException class TheSeer\Tokenizer vendor/theseer/tokenizer/src/TokenCollectionException.php
TokenEmulator abstract class PhpParser\Lexer\TokenEmulator vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php @internal 6 1
TokenHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/TokenHelper.php @internal 141
TokenInterface interface Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php Argument token interface. 16
TokenIterator class PHPStan\PhpDocParser\Parser vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.php 5
TokenizeAreaPluginBase abstract class Drupal\views\Plugin\views\area core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php Tokenized base class for area handlers. 3
Tokenizer class TheSeer\Tokenizer vendor/theseer/tokenizer/src/Tokenizer.php 2

Pagination

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