Classes, traits, and interfaces in Drupal 9
Primary tabs
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
|
Name |
Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|
| TestSiteOliveroInstallTestScript | class |
Drupal\ |
core/ |
Setup file used by TestSiteInstallTestScript. | |||
| TestSiteReleaseLocksCommand | class |
Drupal\ |
core/ |
Command to release all test site database prefix locks. | 1 | ||
| TestSiteTearDownCommand | class |
Drupal\ |
core/ |
Command to tear down a test Drupal site. | 1 | ||
| TestSiteUserLoginCommand | class |
Drupal\ |
core/ |
Command to generate a login link for the test site. | 1 | ||
| TestSkipRowProcess | class |
Drupal\ |
core/ |
Provides a testing process plugin that skips rows. | |||
| TestSqlBase | class |
Drupal\ |
core/ |
Creates a base source class for SQL migration testing. | |||
| TestSqlBase | class |
Drupal\ |
core/ |
A dummy source to help with testing SqlBase. | |||
| TestSqlIdMap | class |
Drupal\ |
core/ |
Defines a SQL ID map for use in tests. | 1 | 1 | |
| TestStateBasedSectionStorage | class |
Drupal\ |
core/ |
Provides a test section storage that is controlled by state. | |||
| TestStatementInterface | interface |
Drupal\ |
core/ |
As StatementInterface extends \Traversable, which though always needs an additional interface. The Statement class itself can't be mocked because of its __wakeup function. | |||
| TestStatus | class |
Drupal\ |
core/ |
Consolidates test result status information. | 1 | ||
| TestStorage | class |
Drupal\ |
core/ |
Provides a test implementation of \Drupal\Core\Config\StorageInterface. | |||
| TestSuiteBase | abstract class |
Drupal\ |
core/ |
Base class for Drupal test suites. | 6 | 1 | |
| TestSuiteBaseTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Tests\TestSuites\TestSuiteBase | |||
| TestSystemLoggerChannel | final class |
Drupal\ |
core/ |
Provides a decorator for the 'logger.channel.system' service for testing. | 2 | ||
| TestTasksSettingsSub1 | class |
Drupal\ |
core/ |
1 | |||
| TestTaskWithUserInput | class |
Drupal\ |
core/ |
1 | |||
| TestTestDatabase | class |
Drupal\ |
core/ |
Stub class supports TestDatabaseTest::testConstructorNullPrefix(). | |||
| TestTextfieldWidget | class |
Drupal\ |
core/ |
Plugin implementation of the 'field_plugins_test_text_widget' widget. | |||
| TestTextTrimmedFormatter | class |
Drupal\ |
core/ |
Plugin implementation of the 'field_plugins_test_text_formatter' formatter. | |||
| TestThemeEngineExtensionList | class |
Drupal\ |
core/ |
Test theme engine extension list class. | |||
| TestThemeExtensionList | class |
Drupal\ |
core/ |
Test theme extension list class. | |||
| TestThemeNegotiator | class |
Drupal\ |
core/ |
Tests the theme negotiation functionality. | 2 | ||
| TestTime | class |
Drupal\ |
core/ |
Test service for altering the request time. | 2 | ||
| TestToolkit | class |
Drupal\ |
core/ |
Defines a Test toolkit for image manipulation within Drupal. | 2 | ||
| TestTrait | trait |
Drupal\ |
core/ |
A nothing trait, but declared in the Drupal\Tests namespace. | 1 | ||
| TestTranslation | class |
Drupal\ |
core/ |
Provides test media source. | |||
| TestTranslationManager | class |
Drupal\ |
core/ |
Implements a translation manager in tests. | |||
| TestTranslationManager | class |
Drupal\ |
core/ |
||||
| TestType | class |
Drupal\ |
core/ |
Test workflow type. | 4 | ||
| TestValidatedReferenceConstraint | class |
Drupal\ |
core/ |
Validates referenced entities. | |||
| TestValidatedReferenceConstraintValidator | class |
Drupal\ |
core/ |
Validates referenced entities. | |||
| TestVarDumper | class |
Drupal\ |
core/ |
Provides handlers for the Symfony VarDumper to work within tests. | 3 | ||
| TestViewListBuilder | class |
Drupal\ |
core/ |
||||
| TestViewsLocalTask | class |
Drupal\ |
core/ |
Replaces the applicable views call for easier testability. | |||
| TestViewsTest | class |
Drupal\ |
core/ |
Tests that test views provided by all modules match schema. | |||
| TestWithConstraints | class |
Drupal\ |
core/ |
Provides generic media type. | |||
| TestWithDispatcher | class |
Drupal\ |
core/ |
||||
| TestWithHiddenSourceField | class |
Drupal\ |
core/ |
Provides test media source. | |||
| TestWorkspaceNegotiator | class |
Drupal\ |
core/ |
Defines a workspace negotiator used for testing. | 2 | ||
| TestXSSTitleBlock | class |
Drupal\ |
core/ |
Provides a block to test XSS in title. | |||
| Text | class |
Drupal\ |
core/ |
Views area text handler. | |||
| Textarea | class |
Drupal\ |
core/ |
Provides a form element for input of multiple-line text. | 1 | ||
| Textarea | class |
Drupal\ |
core/ |
Defines the textarea element for the configuration translation interface. | |||
| TextareaTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Render\Element\Textarea @group Render | |||
| TextareaWidget | class |
Drupal\ |
core/ |
Plugin implementation of the 'text_textarea' widget. | 1 | ||
| TextareaWithSummaryTest | class |
Drupal\ |
core/ |
Tests the JavaScript functionality of the text_textarea_with_summary widget. | |||
| TextareaWithSummaryWidget | class |
Drupal\ |
core/ |
Plugin implementation of the 'text_textarea_with_summary' widget. | 1 | ||
| TextCustom | class |
Drupal\ |
core/ |
Views area text handler. | |||
| TextDefaultFormatter | class |
Drupal\ |
core/ |
Plugin implementation of the 'text_default' formatter. |