Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TestTasksSettingsSub1 | class | Drupal\menu_test\Plugin\Menu\LocalTask | core/ |
1 | ||||
| TestTaskWithUserInput | class | Drupal\menu_test\Plugin\Menu\LocalTask | core/ |
1 | ||||
| TestTestDatabase | class | Drupal\Tests\Core\Test | core/ |
Stub class supports TestDatabaseTest::testConstructorNullPrefix(). | ||||
| TestTextfieldWidget | class | Drupal\field_plugins_test\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'field_plugins_test_text_widget' widget. | ||||
| TestTextTrimmedFormatter | class | Drupal\field_plugins_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_plugins_test_text_formatter' formatter. | ||||
| TestThemeEngineExtensionList | class | Drupal\Tests\Core\Extension | core/ |
Test theme engine extension list class. | ||||
| TestThemeExtensionList | class | Drupal\Tests\Core\Extension | core/ |
Test theme extension list class. | ||||
| TestThemeNegotiator | class | Drupal\menu_test\Theme | core/ |
Tests the theme negotiation functionality. | 2 | |||
| TestTime | class | Drupal\update_test\Datetime | core/ |
Test service for altering the request time. | 2 | |||
| 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/ |
|||||
| TestTranslationManager | class | Drupal\Tests\user\Unit | core/ |
Implements a translation manager in tests. | ||||
| TestType | class | Drupal\workflow_type_test\Plugin\WorkflowType | core/ |
Test workflow type. | 4 | |||
| TestUrl | class | Drupal\Tests\Core | core/ |
|||||
| TestValidatedReferenceConstraint | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Validates referenced entities. | ||||
| TestValidatedReferenceConstraintValidator | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Validates referenced entities. | ||||
| TestVarDumper | class | Drupal\TestTools | core/ |
Provides handlers for the Symfony VarDumper to work within tests. | 3 | |||
| TestViewListBuilder | class | Drupal\Tests\views_ui\Unit | core/ |
|||||
| 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. | ||||
| TestWithConstraints | class | Drupal\media_test_source\Plugin\media\Source | core/ |
Provides generic media type. | ||||
| TestWithDispatcher | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
| 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 | |||
| TestXSSTitleBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a block to test XSS in title. | ||||
| 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/ |
@coversDefaultClass \Drupal\Core\Render\Element\Textarea[[api-linebreak]] @group Render | ||||
| 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. | ||||
| TextareaWithSummaryWidget | class | Drupal\text\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'text_textarea_with_summary' widget. | 1 | |||
| 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\Core\Render\Element | core/ |
Provides a one-line text field form element. | 3 | 3 | ||
| TextField | class | Drupal\text\Plugin\migrate\field\d6 | core/ |
Plugin annotation @MigrateField( id = "d6_text", type_map = { "text" = "text", "text_long" = "text_long", "text_with_summary" = "text_with_summary" }, core = {6}, source_module = "text", destination_module = "text", ) | 2 | |||
| TextField | class | Drupal\text\Plugin\migrate\field\d7 | core/ |
Plugin annotation @MigrateField( id = "d7_text", type_map = { "text" = "text", "text_long" = "text_long", "text_with_summary" = "text_with_summary" }, core = {7}, source_module = "text", destination_module = "text", ) | 1 | |||
| Textfield | class | Drupal\config_translation\FormElement | core/ |
Defines the textfield element for the configuration translation interface. | ||||
| TextFieldRdfaTest | class | Drupal\Tests\rdf\Kernel\Field | core/ |
Tests RDFa output by text field formatters. | ||||
| TextfieldTest | class | Drupal\Tests\Core\Render\Element | core/ |
@coversDefaultClass \Drupal\Core\Render\Element\Textfield[[api-linebreak]] @group Render | ||||
| TextFieldTest | class | Drupal\Tests\text\Unit\Migrate\d7 | core/ |
@coversDefaultClass \Drupal\text\Plugin\migrate\field\d7\TextField[[api-linebreak]] @group text | ||||
| TextFieldTest | class | Drupal\Tests\text\Unit\Migrate\d6 | core/ |
@coversDefaultClass \Drupal\text\Plugin\migrate\field\d6\TextField[[api-linebreak]] @group text | 1 | 1 | ||
| TextFieldTest | class | Drupal\Tests\text\Unit\Plugin\migrate\field\d7 | core/ |
@coversDefaultClass \Drupal\text\Plugin\migrate\field\d7\TextField[[api-linebreak]] @group text | ||||
| TextFieldTest | class | Drupal\Tests\text\Unit\Plugin\migrate\field\d6 | core/ |
@coversDefaultClass \Drupal\text\Plugin\migrate\field\d6\TextField[[api-linebreak]] @group text | ||||
| TextFieldTest | class | Drupal\Tests\text\Functional | core/ |
Tests the creation of text fields. | ||||
| 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. |
Pagination
- Previous page
- Page 168
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.