Classes, traits, and interfaces - 10.3.x - drupal
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 |
|---|---|---|---|---|---|---|---|---|
| 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 | |||
| ThrobberTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests the throbber. | ||||
| ThumbnailDownloader | class | Drupal\media\Plugin\QueueWorker | core/ |
Process a queue of media items to fetch their thumbnails. | ||||
| Tid | class | Drupal\taxonomy\Plugin\views\argument_default | core/ |
Taxonomy tid default argument. | ||||
| Time | class | Drupal\views\Plugin\views\cache | core/ |
Simple caching of query results for Views displays. | ||||
| Time | class | Drupal\Component\Datetime | core/ |
Provides a class for obtaining system time. | 1 | 16 | 2 | |
| TimeInterface | interface | Drupal\Component\Datetime | core/ |
Defines an interface for obtaining system time. | 1 | 86 | ||
| TimeInterval | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for time intervals. | ||||
| Timer | class | Drupal\Component\Utility | core/ |
Provides helpers to use timers throughout a request. | 5 | |||
| TimerTest | class | Drupal\Tests\Component\Utility | core/ |
Tests the Timer system. | ||||
| TimeSpan | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The time span data type represents durations as number of seconds. | ||||
| Timestamp | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The timestamp data type. | 4 | 1 | ||
| TimestampAgoFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'timestamp' formatter as time ago. | 1 | 1 | ||
| TimestampAgoFormatterTest | class | Drupal\FunctionalTests\Datetime | core/ |
Tests the functionality of TimestampAgoFormatter core field formatter. | ||||
| TimestampDatetimeWidget | class | Drupal\Core\Datetime\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'datetime timestamp' widget. | ||||
| TimestampFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'timestamp' formatter. | 5 | |||
| TimestampFormatterSettingsUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the update of timestamp formatter settings. | ||||
| TimestampFormatterTest | class | Drupal\Tests\field\Kernel\Timestamp | core/ |
Tests the timestamp formatters. | ||||
| TimestampFormatterWithTimeDiffTest | class | Drupal\FunctionalJavascriptTests\Core\Field | core/ |
Tests the 'timestamp' formatter when is used with time difference setting. | ||||
| TimestampFormatterWithTimeDiffViewsTest | class | Drupal\FunctionalJavascriptTests\Core\Field | core/ |
Tests the timestamp formatter used with time difference setting in views. | ||||
| TimestampItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'timestamp' entity field type. | 1 | 3 | ||
| TimestampItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for TimestampItem to and from common formats. | 1 | 2 | ||
| TimestampItemNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Tests that TimestampItem (de)normalization uses Timestamp (de)normalization. | ||||
| TimestampItemTest | class | Drupal\Tests\field\Kernel\Timestamp | core/ |
Tests the timestamp fields. | ||||
| TimestampNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for the Timestamp data type to and from common formats. | 1 | 2 | ||
| TimestampNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Unit test coverage for the "Timestamp" @DataType. | ||||
| TimestampNormalizerTestDrupalDateTime | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Provides a test class for testing DrupalDateTime. | ||||
| TimestampSchemaTest | class | Drupal\KernelTests\Core\Datetime | core/ |
Tests timestamp schema. | ||||
| TimestampTest | class | Drupal\FunctionalTests\Datetime | core/ |
Tests the functionality of Timestamp core field UI. | ||||
| TimeTest | class | Drupal\Tests\Component\Datetime | core/ |
@coversDefaultClass \Drupal\Component\Datetime\Time[[api-linebreak]] @group Datetime | ||||
| TimeWithNoRequestTest | class | Drupal\Tests\Component\Datetime | core/ |
Tests that getRequest(Micro)Time works when no underlying request exists. | ||||
| TimeZone | class | Drupal\system\Plugin\migrate\process\d6 | core/ |
Process the D6 Timezone offset into a D8 compatible timezone name. | ||||
| TimeZoneAbbreviationRouteTest | class | Drupal\Tests\system\Functional\Datetime | core/ |
Tests converting JavaScript time zone abbreviations to time zone identifiers. | ||||
| TimeZoneCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the TimeZoneCacheContext service, for "per time zone" caching. | 2 | |||
| 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. | 9 | |||
| TimeZoneFormHelperTest | class | Drupal\Tests\Core\Datetime | core/ |
@coversDefaultClass \Drupal\Core\Datetime\TimeZoneFormHelper[[api-linebreak]] @group Datetime | ||||
| 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 | |||
| TimezoneResolverTest | class | Drupal\Tests\system\Kernel | core/ |
@coversDefaultClass \Drupal\system\TimeZoneResolver[[api-linebreak]] @group system | ||||
| TimezoneTest | class | Drupal\KernelTests\Core\Datetime\Element | core/ |
Tests the timezone handling of datetime and datelist element types. | ||||
| Tip | class | Drupal\tour\Annotation | core/ |
Defines a tour item annotation object. | ||||
| TipPluginBase | abstract class | Drupal\tour | core/ |
Defines a base tour item implementation. | 4 | 5 | ||
| TipPluginBaseTest | class | Drupal\Tests\tour\Unit | core/ |
@coversDefaultClass \Drupal\tour\TipPluginBase[[api-linebreak]] | ||||
| TipPluginImage | class | Drupal\tour_test\Plugin\tour\tip | core/ |
Displays an image as a tip. | ||||
| TipPluginImageLegacy | class | Drupal\tour_test\Plugin\tour\tip | core/ |
Displays an image as a tip. | ||||
| TipPluginInterface | interface | Drupal\tour | core/ |
Defines an interface for tour items. | 2 | 1 | ||
| TipPluginManager | class | Drupal\tour | core/ |
Provides a plugin manager for tour items. | 2 | |||
| TipPluginText | class | Drupal\tour\Plugin\tour\tip | core/ |
Displays some text as a tip. |
Pagination
- Previous page
- Page 179
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.