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 |
|---|---|---|---|---|---|---|---|---|
| TestThemeThemeHooks | class | Drupal\test_theme_theme\Hook | core/ |
Hook implementations for test_theme_theme. | ||||
| TestTime | class | Drupal\update_test\Datetime | core/ |
Test service for altering the request time. | 2 | |||
| TestTime | class | Drupal\Tests\package_manager\Kernel | core/ |
A test-only implementation of the time service. | ||||
| TestTime | class | Drupal\Tests\workspaces\Kernel | core/ |
A test-only implementation of the time service. | ||||
| TestToolkit | class | Drupal\image_test\Plugin\ImageToolkit | core/ |
Defines a Test toolkit for image manipulation within Drupal. | 2 | |||
| TestTrait | trait | Drupal\Tests\system\Traits | core/ |
A nothing trait, but declared in the Drupal\Tests namespace. | 1 | |||
| TestTranslation | class | Drupal\media_test_source\Plugin\media\Source | core/ |
Provides test media source. | ||||
| TestTranslationManager | class | Drupal\Tests\Core\StringTranslation | core/ |
A chained translation implementation used for testing. | ||||
| TestType | class | Drupal\workflow_type_test\Plugin\WorkflowType | core/ |
Test workflow type. | 4 | |||
| TestUrl | class | Drupal\Tests\Core | core/ |
URL information holder with overridden access manager for testing. | ||||
| TestValidatedReferenceConstraint | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Validates referenced entities. | ||||
| TestValidatedReferenceConstraintValidator | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Validates referenced entities. | ||||
| TestViewListBuilder | class | Drupal\Tests\views_ui\Unit | core/ |
Stub class for testing ViewListBuilder methods. | ||||
| TestViewsLocalTask | class | Drupal\Tests\views\Unit\Plugin\Derivative | core/ |
Replaces the applicable views call for easier testability. | ||||
| TestViewsTest | class | Drupal\Tests\views\Kernel | core/ |
Tests that test views provided by all modules match schema. | ||||
| TestWaitTerminateMiddleware | class | Drupal\Core\Test\StackMiddleware | core/ |
Acquire a lock to signal request termination to the test runner. | ||||
| TestWithConstraints | class | Drupal\media_test_source\Plugin\media\Source | core/ |
Provides generic media type. | ||||
| TestWithHiddenSourceField | class | Drupal\media_test_source\Plugin\media\Source | core/ |
Provides test media source. | ||||
| 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. | ||||
| TestXssBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a block containing an XSS payload. | ||||
| 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\Core\Render\Element | core/ |
Provides a form element for input of multiple-line text. | 1 | |||
| Textarea | class | Drupal\config_translation\FormElement | core/ |
Defines the textarea element for the configuration translation interface. | ||||
| TextareaTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the form API textarea element. | ||||
| TextareaTest | class | Drupal\Tests\Core\Render\Element | core/ |
Tests Drupal\Core\Render\Element\Textarea. | ||||
| 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\config_translation\FormElement | core/ |
Defines the textfield element for the configuration translation interface. | ||||
| Textfield | class | Drupal\Core\Render\Element | core/ |
Provides a one-line text field form element. | 3 | 2 | ||
| 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. |
Pagination
- Previous page
- Page 205
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.