Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TestContainerDerivativeDiscovery | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
Defines container test derivative discovery. | ||||
| TestContent | class | Drupal\router_test | core/ |
Test controllers that are intended to be wrapped in a main controller. | ||||
| TestContextAwareBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a context-aware block. | ||||
| TestContextAwareLayout | class | Drupal\layout_builder_test\Plugin\Layout | core/ |
The TestContextAwareLayout Class. | ||||
| 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/ |
Context aware plugin test class. | ||||
| TestContextAwarePluginDefinition | class | Drupal\KernelTests\Core\Plugin\Context | core/ |
A plugin definition test class. | ||||
| 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/ |
Controller for testing module information and container reset functionality. | ||||
| TestController | class | Drupal\path_changed_helper_test\Controller | core/ |
Controller for testing the PathChangedHelper class. | ||||
| TestController | class | Drupal\csrf_race_test\Controller | core/ |
Controller to test concurrent CSRF token generation. | ||||
| TestController | class | Drupal\http_kernel_test\Controller | core/ |
A test controller. | ||||
| TestController | class | Drupal\jswebassert_test\Controller | core/ |
Provides a test page for JavaScript assertions. | ||||
| TestController | class | Drupal\content_negotiation_test\Controller | core/ |
Test controller for content negotiation tests. | ||||
| 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\Tests\views\Unit\Plugin\display | core/ |
A page controller for use by tests in this file. | ||||
| TestController | class | Drupal\views_test_modal\Controller | core/ |
Controller for testing page that renders a View in a modal. | ||||
| TestController | class | Drupal\contextual_test\Controller | core/ |
Test controller to provide a callback for the contextual link. | ||||
| TestController | class | Drupal\Tests\Core\Controller | core/ |
Defines a test controller used by unit tests. | ||||
| TestController | class | Drupal\Tests\Core\Access | core/ |
Controller for testing custom access. | ||||
| TestController | class | Drupal\package_manager_test_release_history | core/ |
Controller for generating mock XML metadata for package manager testing. | ||||
| 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/ |
Tests Drupal\Core\Test\TestDatabase. | ||||
| 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/ |
Test class for testing the final exception subscriber. | ||||
| TestDefaultHtmlRouteProvider | class | Drupal\Tests\Core\Entity\Routing | core/ |
Stub class for testing DefaultHtmlRouteProvider. | ||||
| TestDefaultTableMapping | class | Drupal\Tests\Core\Entity\Sql | core/ |
Extends DefaultTableMapping to allow calling its protected methods. | ||||
| TestDeprecatedSuggestionThemeHooks | class | Drupal\test_deprecated_suggestion_theme\Hook | core/ |
Hook implementations for test_deprecated_suggestion_theme. | ||||
| 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. | ||||
| TestDirectWriteSandboxManager | class | Drupal\Tests\package_manager\Kernel | core/ |
Defines a test-only sandbox manager that allows direct-write. | ||||
| TestDiscovery | class | Drupal\Core\Test | core/ |
Discovers available tests. | 2 | |||
| TestDiscoveryTest | class | Drupal\Tests\Core\Test | core/ |
Unit tests for test discovery. | ||||
| TestDiskSpaceValidator | class | Drupal\Tests\package_manager\Kernel | core/ |
A test version of the disk space validator to bypass system-level functions. | ||||
| TestDisplayVariant | class | Drupal\display_variant_test\Plugin\DisplayVariant | core/ |
Provides a display variant that requires configuration. | ||||
| TestDomainObject | class | Drupal\early_rendering_controller_test | core/ |
Test domain class. | 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. |
Pagination
- Previous page
- Page 190
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.