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 |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| 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. | ||||
| 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. | ||||
| 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\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 | ||
| 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/ |
#[MigrateField(id: 'd7_text', core: [ 7, ], type_map: [ 'text' => 'text', 'text_long' => 'text_long', 'text_with_summary' => 'text_with_summary', ], source_module: 'text', destination_module: 'text')] | 1 | |||
| TextFieldItemList | class | Drupal\text\Plugin\Field\FieldType | core/ |
Defines an item list class for text fields. | ||||
| TextfieldTest | class | Drupal\Tests\Core\Render\Element | core/ |
@coversDefaultClass \Drupal\Core\Render\Element\Textfield[[api-linebreak]] @group Render | ||||
| 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\Unit\Plugin\migrate\field\d7 | core/ |
@coversDefaultClass \Drupal\text\Plugin\migrate\field\d7\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. | ||||
| 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. | ||||
| 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 | 4 | ||
| 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. | ||||
| 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 text_summary() with different strings and lengths. | ||||
| TextTrimmedFormatter | class | Drupal\text\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'text_trimmed' formatter. | 2 | 1 | ||
| 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. | ||||
| Theme | class | Drupal\Core\Updater | core/ |
Defines a class for updating themes. | ||||
| ThemeAccessCheck | class | Drupal\Core\Theme | core/ |
Provides access checking for themes for routing and theme negotiation. | 1 | 2 | ||
| ThemeAdminForm | class | Drupal\system\Form | core/ |
Form to select the administration theme. |
Pagination
- Previous page
- Page 177
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.