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 |
|---|---|---|---|---|---|---|---|---|
| TestEntityType | class | Drupal\Tests\views\Kernel\Entity | core/ |
Entity type class which allows changing the entity keys. | ||||
| TestEntityTypeManager | class | Drupal\Tests\Core\Entity | core/ |
Provides a test entity type manager. | ||||
| TestEventListener | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
| TestEventSubscriber | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
| TestEventSubscriberWithMultipleListeners | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
| TestEventSubscriberWithPriorities | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
| TestExample | class | Drupal\views_test_data\Plugin\views\area | core/ |
Test area plugin. | ||||
| TestExtendedNormalizer | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Test normalizer with a different supported class. | ||||
| TestExtension | class | Drupal\twig_extension_test\TwigExtension | core/ |
A test Twig extension that adds a custom function and a custom filter. | 1 | 2 | ||
| TestExtension | class | Drupal\Tests\Core\Extension | core/ |
|||||
| TestFieldApplicableFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_test_applicable' formatter. | ||||
| TestFieldConstraint | class | Drupal\field_test\Plugin\Validation\Constraint | core/ |
Checks if a value is not equal. | ||||
| TestFieldDefaultFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_test_default' formatter. | ||||
| TestFieldEmptyFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_empty_test' formatter. | ||||
| TestFieldEmptySettingFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_empty_setting' formatter. | ||||
| TestFieldMultipleFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_test_multiple' formatter. | ||||
| TestFieldNoSettingsFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_no_settings' formatter. | ||||
| TestFieldPrepareViewFormatter | class | Drupal\field_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'field_test_with_prepare_view' formatter. | ||||
| TestFieldType | class | Drupal\Tests\field\Unit | core/ |
A test class to test field storage dependencies. | ||||
| TestFieldWidget | class | Drupal\field_test\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'test_field_widget' widget. | 1 | |||
| TestFieldWidgetMultilingual | class | Drupal\field_test\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'test_field_widget_multilingual' widget. | ||||
| TestFieldWidgetMultiple | class | Drupal\field_test\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'test_field_widget_multiple' widget. | 1 | |||
| TestFieldWidgetMultipleSingleValues | class | Drupal\field_test\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'test_field_widget_multiple' widget. | ||||
| TestFileCopy | class | Drupal\Tests\migrate\Unit\process | core/ |
Class for testing FileCopy. | ||||
| TestFileCreationTrait | trait | Drupal\Tests | core/ |
Provides methods to create test files from given values. | 64 | |||
| TestFileParser | class | Drupal\Core\Test\RunTests | core/ |
Parses class names from PHP files without loading them. | 1 | |||
| TestFileParserTest | class | Drupal\Tests\Core\Test\RunTests | core/ |
@coversDefaultClass \Drupal\Core\Test\RunTests\TestFileParser[[api-linebreak]] @group Test @group RunTests | ||||
| TestFileTransfer | class | Drupal\Tests\system\Functional\FileTransfer | core/ |
Mock FileTransfer object for test case. | 1 | |||
| TestFileTransferWithSettingsForm | class | Drupal\update_test | core/ |
Provides an object to test the settings form functionality. | ||||
| TestFileUsage | class | Drupal\service_provider_test | core/ |
|||||
| TestFilteredPluginManager | class | Drupal\Tests\Core\Plugin | core/ |
Class that allows testing the trait. | ||||
| TestFilterIterator | class | Drupal\Tests\migrate\Kernel | core/ |
Class to test FilterIterators. | ||||
| TestForm | class | Drupal\test_page_test\Form | core/ |
Defines a test form for testing assertions. | 1 | |||
| TestForm | class | Drupal\block_test\Form | core/ |
Form that performs base block form test. | ||||
| TestForm | class | Drupal\dialog_renderer_test\Form | core/ |
Provides a form for testing the drupalAutoButtons dialog option. | 1 | |||
| TestForm | class | Drupal\Tests\Core\Form | core/ |
2 | ||||
| TestForm | class | Drupal\page_cache_form_test\Form | core/ |
A form to test page cache. | 1 | |||
| TestFormApiFormBlock | class | Drupal\layout_builder_form_block_test\Plugin\Block | core/ |
Provides a block containing a Form API form for use in Layout Builder tests. | ||||
| TestFormBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a block to test caching. | ||||
| TestFormInjected | class | Drupal\Tests\Core\Form | core/ |
|||||
| TestFormWithPredefinedForm | class | Drupal\Tests\Core\Form | core/ |
|||||
| TestHandler | class | Drupal\Tests\views\Unit\Plugin | core/ |
Allow testing base handler implementation by extending the abstract class. | ||||
| TestHelperPlugin | class | Drupal\views\Tests | core/ |
Wraps the plugin base class to be able to instantiate it. | 1 | |||
| TestHelpSection | class | Drupal\help_topics_test\Plugin\HelpSection | core/ |
Provides a searchable help section for testing. | ||||
| TestHelpTopicDeriver | class | Drupal\help_topics_test\Plugin\Deriver | core/ |
A test discovery deriver for fake help topics. | 1 | |||
| TestHelpTopicPlugin | class | Drupal\help_topics_test\Plugin\HelpTopic | core/ |
A fake help topic plugin for testing. | 1 | |||
| TestHtmlBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a block to test HTML. | 1 | |||
| TestHtmlMailCollector | class | Drupal\mail_html_test\Plugin\Mail | core/ |
Defines a mail backend that captures sent HTML messages in the state system. | ||||
| TestHttpClientMiddleware | class | Drupal\Core\Test\HttpClientMiddleware | core/ |
Overrides the User-Agent HTTP header for outbound HTTP requests. | 1 | |||
| TestingProfileInstallTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests installing the Testing profile with update notifications on. |
Pagination
- Previous page
- Page 173
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.