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 |
|---|---|---|---|---|---|---|---|---|
| TestWorkspaceNegotiator | class | Drupal\workspace_update_test\Negotiator | core/ |
Defines a workspace negotiator used for testing. | 2 | |||
| TestWorkspaceProvider | class | Drupal\workspaces_test\Provider | core/ |
Defines a test workspace provider. | ||||
| TestYamlRouteDiscovery | class | Drupal\Tests\Core\Routing | core/ |
Extends the core route builder with a setter method for the YAML discovery. | ||||
| Text | class | Drupal\views\Plugin\views\area | core/ |
Views area text handler. | ||||
| Textarea | class | Drupal\config_translation\FormElement | core/ |
Defines the textarea element for the configuration translation interface. | ||||
| Textarea | class | Drupal\Core\Render\Element | core/ |
Provides a form element for input of multiple-line text. | 1 | |||
| TextareaTest | class | Drupal\Tests\Core\Render\Element | core/ |
Tests Drupal\Core\Render\Element\Textarea. | ||||
| TextareaTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the form API textarea element. | ||||
| 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. | 1 | |||
| 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. | 2 | |||
| TextProcessedAttachmentsTest | class | Drupal\Tests\text\Kernel | core/ |
Tests that TextProcessed::getAttachments() bubbles filter attachments. | ||||
| TextProcessedTest | class | Drupal\Tests\text\Unit | core/ |
Tests TextProcessed with AttachmentsInterface. | ||||
| 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. |
Pagination
- Previous page
- Page 199
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.