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 |
|---|---|---|---|---|---|---|---|---|
| TestContextAwareNoValidContextOptionsBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a context-aware block that uses a not-passed, non-required context. | ||||
| TestContextAwarePlugin | class | Drupal\KernelTests\Core\Plugin | core/ |
Provides a test implementation of a context-aware plugin. | ||||
| TestContextAwarePlugin | class | Drupal\KernelTests\Core\Plugin\Context | core/ |
|||||
| TestContextAwarePluginDefinition | class | Drupal\KernelTests\Core\Plugin\Context | core/ |
|||||
| TestContextAwareUnsatisfiedBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a context-aware block. | ||||
| TestContextualLink | class | Drupal\menu_test\Plugin\Menu\ContextualLink | core/ |
Defines a contextual link plugin with a dynamic title from user input. | 1 | |||
| TestController | class | Drupal\token_test\Controller | core/ |
Provides a test controller for token replacement. | ||||
| TestController | class | Drupal\container_rebuild_test | core/ |
|||||
| TestController | class | Drupal\dialog_renderer_test\Controller | core/ |
Test controller display modal links and content. | ||||
| TestController | class | Drupal\off_canvas_test\Controller | core/ |
Test controller for 2 different responses. | ||||
| TestController | class | Drupal\csrf_test\Controller | core/ |
Just a test controller for test routes. | ||||
| TestController | class | Drupal\js_webassert_test\Controller | core/ |
|||||
| TestController | class | Drupal\csrf_race_test\Controller | core/ |
Controller to test concurrent CSRF token generation. | ||||
| TestController | class | Drupal\contextual_test\Controller | core/ |
Test controller to provide a callback for the contextual link. | ||||
| TestController | class | Drupal\views_test_modal\Controller | core/ |
|||||
| TestController | class | Drupal\Tests\Core\Controller | core/ |
Defines a test controller used by unit tests. | ||||
| TestController | class | Drupal\Tests\Core\Access | core/ |
|||||
| TestController | class | Drupal\path_changed_helper_test\Controller | core/ |
Controller for testing the PathChangedHelper class. | ||||
| TestController | class | Drupal\content_negotiation_test\Controller | core/ |
Test controller for content negotiation tests. | ||||
| TestController | class | Drupal\http_kernel_test\Controller | core/ |
A test controller. | ||||
| TestController | class | Drupal\Tests\views\Unit\Plugin\display | core/ |
A page controller for use by tests in this file. | ||||
| TestControllers | class | Drupal\paramconverter_test | core/ |
Controller routine for testing the paramconverter. | ||||
| TestControllers | class | Drupal\menu_test | core/ |
Controllers for testing the menu integration routing system. | ||||
| TestControllers | class | Drupal\router_test | core/ |
Controller routines for testing the routing system. | 1 | |||
| TestCoverageTest | class | Drupal\Tests\jsonapi\Kernel | core/ |
Checks that all core content/config entity types have JSON:API test coverage. | ||||
| TestDatabase | class | Drupal\Core\Test | core/ |
Provides helper methods for interacting with the fixture database. | 1 | 10 | ||
| TestDatabaseTest | class | Drupal\Tests\Core\Test | core/ |
@coversDefaultClass \Drupal\Core\Test\TestDatabase[[api-linebreak]] | ||||
| TestDataType | class | Drupal\Tests\Core\Plugin\Fixtures\Plugin\DataType | core/ |
Provides a test data type. | ||||
| TestDataTypeDeriver | class | Drupal\Tests\Core\Plugin\Fixtures\Plugin\DataType | core/ |
Provides a deriver that returns a plugin for the bare ID and one variant. | ||||
| TestDefaultExceptionSubscriber | class | Drupal\Tests\Core\EventSubscriber | core/ |
|||||
| TestDefaultHtmlRouteProvider | class | Drupal\Tests\Core\Entity\Routing | core/ |
|||||
| TestDefaultTableMapping | class | Drupal\Tests\Core\Entity\Sql | core/ |
Extends DefaultTableMapping to allow calling its protected methods. | ||||
| TestDerivativeDiscovery | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
Defines test derivative discovery. | 1 | |||
| TestDerivativeDiscoveryWithObject | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
Defines test derivative discovery using an object.. | ||||
| TestDifferentDisplays | class | Drupal\media_test_source\Plugin\media\Source | core/ |
Provides test media source. | ||||
| TestDiscovery | class | Drupal\Core\Test | core/ |
Discovers available tests. | 2 | |||
| TestDiscoveryTest | class | Drupal\Tests\Core\Test | core/ |
@coversDefaultClass \Drupal\Core\Test\TestDiscovery[[api-linebreak]] @group Test | ||||
| TestDisplayVariant | class | Drupal\display_variant_test\Plugin\DisplayVariant | core/ |
Provides a display variant that requires configuration. | ||||
| TestDomainObject | class | Drupal\early_rendering_controller_test | core/ |
2 | ||||
| TestDomainObjectViewSubscriber | class | Drupal\early_rendering_controller_test | core/ |
View subscriber for turning TestDomainObject objects into Response objects. | 2 | |||
| TestDrupal6SqlBase | class | Drupal\Tests\migrate_drupal\Unit\source\d6 | core/ |
Extends the Drupal6SqlBase abstract class. | ||||
| TestDrupalSqlBase | class | Drupal\Tests\migrate_drupal\Unit\source | core/ |
Extends the DrupalSqlBase abstract class. | ||||
| TestElementInfoManager | class | Drupal\Tests\Core\Render | core/ |
Provides a test custom element plugin. | ||||
| TestEntity | class | Drupal\Tests\Core\Entity | core/ |
A concrete entity. | ||||
| TestEntity | class | Drupal\Tests\content_moderation\Unit | core/ |
A concrete entity. | ||||
| TestEntityFieldManager | class | Drupal\Tests\Core\Entity | core/ |
|||||
| TestEntityForm | class | Drupal\Tests\Core\Entity | core/ |
Provides a test entity form. | 1 | |||
| TestEntityFormInjected | class | Drupal\Tests\Core\Entity | core/ |
Provides a test entity form that uses injection. | ||||
| TestEntityHandlerBase | abstract class | Drupal\Tests\Core\Entity | core/ |
Provides a test entity handler. | ||||
| TestEntityListBuilder | class | Drupal\Tests\Core\Entity | core/ |
Pagination
- Previous page
- Page 172
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.