Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TextareaWidget | class | Drupal\text\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'text_textarea' widget. | 1 | |||
| TextareaWithSummaryTest | class | Drupal\Tests\text\FunctionalJavascript | core/ |
Tests the JavaScript functionality of the text_textarea_with_summary widget. | ||||
| TextareaWithSummaryTest | class | Drupal\Tests\text\Functional | core/ |
Tests the functionality of the text_textarea_with_summary widget. | ||||
| TextareaWithSummaryWidget | class | Drupal\text\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'text_textarea_with_summary' widget. | ||||
| TextCustom | class | Drupal\views\Plugin\views\area | core/ |
Views area text handler. | ||||
| TextDefaultFormatter | class | Drupal\text\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'text_default' formatter. | ||||
| TextEditorObjectDependentValidatorTrait | trait | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Some CKEditor 5 constraint validators need a Text Editor object. | ||||
| TextField | class | Drupal\text\Plugin\migrate\field\d6 | core/ |
MigrateField Plugin for Drupal 6 text fields. | 1 | |||
| TextField | class | Drupal\text\Plugin\migrate\field\d7 | core/ |
Migrate field plugin for Drupal 7 text fields. | 1 | |||
| Textfield | class | Drupal\Core\Render\Element | core/ |
Provides a one-line text field form element. | 3 | 2 | ||
| Textfield | class | Drupal\config_translation\FormElement | core/ |
Defines the textfield element for the configuration translation interface. | ||||
| TextFieldItemList | class | Drupal\text\Plugin\Field\FieldType | core/ |
Defines an item list class for text fields. | 1 | |||
| TextFieldItemListTest | class | Drupal\Tests\text\Unit\Plugin\Field\FieldType | core/ |
Tests TextFieldItemList. | ||||
| TextFieldTest | class | Drupal\Tests\text\Unit\Plugin\migrate\field\d6 | core/ |
Tests Drupal\text\Plugin\migrate\field\d6\TextField. | ||||
| TextFieldTest | class | Drupal\Tests\text\Unit\Plugin\migrate\field\d7 | core/ |
Tests Drupal\text\Plugin\migrate\field\d7\TextField. | ||||
| TextFieldTest | class | Drupal\Tests\text\Functional | core/ |
Tests the creation of text fields. | ||||
| TextfieldTest | class | Drupal\Tests\Core\Render\Element | core/ |
Tests Drupal\Core\Render\Element\Textfield. | ||||
| TextfieldWidget | class | Drupal\text\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'text_textfield' widget. | 1 | 1 | ||
| TextFormat | class | Drupal\config_translation\FormElement | core/ |
Defines the text_format element for the configuration translation interface. | ||||
| TextFormat | class | Drupal\filter\Element | core/ |
Provides a text format render element. | ||||
| TextFormatElementFormTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests PathElement validation and conversion functionality. | ||||
| TextFormatterTest | class | Drupal\Tests\text\Kernel | core/ |
Tests the text formatters functionality. | ||||
| TextHooks | class | Drupal\text\Hook | core/ |
Hook implementations for text. | ||||
| TextItem | class | Drupal\text\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'text' field type. | ||||
| TextItemBase | abstract class | Drupal\text\Plugin\Field\FieldType | core/ |
Base class for 'text' configurable field types. | 3 | 3 | ||
| TextItemBaseTest | class | Drupal\Tests\text\Kernel | core/ |
Tests TextItemBase. | ||||
| TextItemSillyNormalizer | class | Drupal\field_normalization_test\Normalization | core/ |
A test TextItem normalizer to test denormalization. | 2 | |||
| TextLongItem | class | Drupal\text\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'text_long' field type. | 1 | 1 | ||
| TextProcessed | class | Drupal\text | core/ |
A computed property for processing text with a format. | ||||
| TextSummary | class | Drupal\text | core/ |
Summary generator for text fields. | 4 | |||
| TextSummaryNodeFieldsTokenTest | class | Drupal\Tests\text\Functional | core/ |
Tests replacement of Views tokens supplied by the Node module. | ||||
| TextSummaryOrTrimmedFormatter | class | Drupal\text\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'text_summary_or_trimmed' formatter. | ||||
| TextSummaryTest | class | Drupal\Tests\text\Kernel | core/ |
Tests TextSummary::generate() with different strings and lengths. | ||||
| TextSummaryTestHooks | class | Drupal\text_summary_test\Hook | core/ |
Hook implementations for text_summary_test. | ||||
| TextTestHooks | class | Drupal\text_test\Hook | core/ |
Hook implementations for text_test. | ||||
| TextTrimmedFormatter | class | Drupal\text\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'text_trimmed' formatter. | 2 | 1 | ||
| TextWithSummaryFileUsageTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests tracking of file usage by the Text Editor module. | ||||
| TextWithSummaryItem | class | Drupal\text\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'text_with_summary' field type. | ||||
| TextWithSummaryItemTest | class | Drupal\Tests\text\Kernel | core/ |
Tests using entity fields of the text summary field type. | ||||
| TextWithSummaryTokenReplaceTest | class | Drupal\Tests\node\Kernel | core/ |
Tests node token replacement for text_with_summary. | ||||
| Theme | class | Drupal\Core\Extension | core/ |
The Theme extension object. | 3 | |||
| ThemeAccessCheck | class | Drupal\Core\Theme | core/ |
Provides access checking for themes for routing and theme negotiation. | 2 | 2 | ||
| ThemeAdminForm | class | Drupal\system\Form | core/ |
Form to select the administration theme. | ||||
| ThemeCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the ThemeCacheContext service, for "per theme" caching. | 2 | |||
| ThemeCommonElements | class | Drupal\Core\Theme | core/ |
Provide common theme render elements. | 1 | |||
| ThemeController | class | Drupal\system\Controller | core/ |
Controller for theme handling. | ||||
| ThemeDeprecationTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests theme deprecations. | ||||
| ThemeEarlyInitializationTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests theme system initialization early in the page request. | ||||
| ThemeEngineExtensionList | class | Drupal\Core\Extension | core/ |
Provides a list of available theme engines. | 1 | 2 | ||
| ThemeEngineExtensionListTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ThemeEngineExtensionList. |
Pagination
- Previous page
- Page 197
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.