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 |
---|---|---|---|---|---|---|---|---|
Timestamp | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The timestamp data type. | 2 | 1 | ||
Timestamp | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
Timestamp | class | Google\Protobuf | vendor/ |
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/ |
Plugin implementation of the 'timestamp' formatter as time ago. | 1 | 1 | ||
TimestampBase | class | Google\Protobuf\Internal | vendor/ |
Base class for Google\Protobuf\Timestamp, this contains hand-written convenience methods. | 1 | |||
TimestampDatetimeWidget | class | Drupal\Core\Datetime\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'datetime timestamp' widget. | ||||
TimestampFirstCombCodec | class | Ramsey\Uuid\Codec | vendor/ |
TimestampFirstCombCodec encodes and decodes COMBs, with the timestamp as the first 48 bits | ||||
TimestampFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'timestamp' formatter. | ||||
TimestampItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'timestamp' entity field type. | 1 | 1 | ||
TimestampItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for TimestampItem to and from common formats. | 2 | |||
TimestampLastCombCodec | class | Ramsey\Uuid\Codec | vendor/ |
TimestampLastCombCodec encodes and decodes COMBs, with the timestamp as the last 48 bits | ||||
TimestampNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for the Timestamp data type to and from common formats. | 2 | |||
Timestamps | class | Seld\PharUtils | vendor/ |
1 | ||||
TimeTrait | trait | Ramsey\Uuid\Rfc4122 | vendor/ |
Provides common functionality for getting the time from a time-based UUID | 1 | |||
TimeValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
Timezone | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid timezone identifier. | ||||
TimeZone | class | Drupal\system\Plugin\migrate\process\d6 | core/ |
Process the D6 Timezone offset into a D8 compatible timezone name. | ||||
TimeZoneCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the TimeZoneCacheContext service, for "per time zone" caching. | ||||
TimezoneController | class | Drupal\system\Controller | core/ |
Provides a callback for finding a time zone identifier. | ||||
TimeZoneFormHelper | class | Drupal\Core\Datetime | core/ |
Helper class for dealing with timezones. | 7 | |||
TimeZoneItem | class | Drupal\user | core/ |
Defines a custom field item class for the 'timezone' user entity field. | 1 | |||
TimeZoneResolver | class | Drupal\system | core/ |
Event handler that resolves time zone based on site and user configuration. | 2 | |||
TimezoneValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a valid timezone identifier. | ||||
Timing | class | PHP_CodeSniffer\Util | vendor/ |
9 | ||||
TInHookMenuSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Checks that t() is not used in hook_menu(). | ||||
TInHookSchemaSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Checks that t() is not used in hook_schema(). | ||||
Title | class | Drupal\views\Plugin\views\area | core/ |
Views area title override handler. | ||||
TitleBlockPluginInterface | interface | Drupal\Core\Block | core/ |
The interface for "title" blocks. | 1 | 3 | ||
TitleResolver | class | Drupal\Core\Controller | core/ |
Provides the default implementation of the title resolver interface. | ||||
TitleResolverInterface | interface | Drupal\Core\Controller | core/ |
Defines a class which knows how to generate the title from a given route. | 1 | 4 | ||
TLD | class | Egulias\EmailValidator\Warning | vendor/ |
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/ |
@author Chris Smith <chris@cs278.org> | |||
TodoCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Parses and verifies that comments use the correct @todo format. | ||||
TodoSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting | vendor/ |
|||||
Token | class | Symfony\Component\CssSelector\Parser | vendor/ |
CSS selector token. | 8 | |||
Token | class | TheSeer\Tokenizer | vendor/ |
|||||
Token | class | Drupal\Core\Render\Element | core/ |
Stores token data in a hidden form field. | ||||
Token | class | PhpParser | vendor/ |
A PHP token. On PHP 8.0 this extends from PhpToken. | 9 | |||
Token | class | Drupal\Core\Utility | core/ |
Drupal placeholder/token replacement system. | 3 | |||
Token | final class | Twig | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 22 | |||
Token | class | Peast\Syntax | vendor/ |
A token emitted by the tokenizer. | 2 | |||
Token | final class | Doctrine\Common\Lexer | vendor/ |
@template T of UnitEnum|string|int @template V of string|int @implements ArrayAccess<string,mixed> | 2 | |||
TokenCollection | class | TheSeer\Tokenizer | vendor/ |
|||||
TokenCollectionException | class | TheSeer\Tokenizer | vendor/ |
|||||
TokenEmulator | abstract class | PhpParser\Lexer\TokenEmulator | vendor/ |
@internal | 6 | 1 | ||
TokenHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 141 | |||
TokenInterface | interface | Prophecy\Argument\Token | vendor/ |
Argument token interface. | 16 | |||
TokenIterator | class | PHPStan\PhpDocParser\Parser | vendor/ |
5 | ||||
TokenizeAreaPluginBase | abstract class | Drupal\views\Plugin\views\area | core/ |
Tokenized base class for area handlers. | 3 | |||
Tokenizer | class | TheSeer\Tokenizer | vendor/ |
2 |