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 |
|---|---|---|---|---|---|---|---|---|
| GenericTest | class | Drupal\Tests\options\Functional | core/ |
Generic module test for options. | ||||
| GenericTest | class | Drupal\Tests\menu_link_content\Functional | core/ |
Generic module test for menu_link_content. | ||||
| GenericTest | class | Drupal\Tests\menu_ui\Functional | core/ |
Generic module test for menu_ui. | ||||
| GenericTest | class | Drupal\Tests\workspaces\Functional | core/ |
Generic module test for workspaces. | ||||
| GenericTest | class | Drupal\Tests\sqlite\Functional | core/ |
Generic module test for sqlite. | ||||
| GenericTest | class | Drupal\Tests\file\Functional | core/ |
Generic module test for file. | ||||
| GenericTest | class | Drupal\Tests\locale\Functional | core/ |
Generic module test for locale. | ||||
| GenericTest | class | Drupal\Tests\page_cache\Functional | core/ |
Generic module test for page_cache. | ||||
| GenericTest | class | Drupal\Tests\responsive_image\Functional | core/ |
Generic module test for responsive_image. | ||||
| GenericTest | class | Drupal\Tests\migrate_drupal\Functional | core/ |
Generic module test for migrate_drupal. | ||||
| GenericTest | class | Drupal\Tests\navigation\Functional | core/ |
Generic module test for navigation. | ||||
| GenericTest | class | Drupal\Tests\dblog\Functional | core/ |
Generic module test for dblog. | ||||
| GenericTestExistsTest | class | Drupal\Tests\Core\Extension | core/ |
Tests that the Generic module test exists for all modules. | ||||
| Get | class | Drupal\migrate\Plugin\migrate\process | core/ |
Gets the source value. | 3 | |||
| GetDocumentFromResponseTrait | trait | Drupal\Tests\jsonapi\Traits | core/ |
Test trait for retrieving the JSON:API document from a response. | 4 | |||
| GetTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the get process plugin. | ||||
| GetTestMethodCallerExtendsTest | class | Drupal\FunctionalTests | core/ |
Test for BrowserTestBase::getTestMethodCaller() in child classes. | ||||
| GetTestMethodCallerTest | class | Drupal\FunctionalTests | core/ |
Explicit test for BrowserTestBase::getTestMethodCaller(). | 1 | |||
| Gettext | class | Drupal\locale | core/ |
Static class providing Drupal specific Gettext functionality. | 1 | |||
| Git | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Provide some Git utility operations. | ||||
| GitExcluder | final class | Drupal\package_manager\PathExcluder | core/ |
Excludes .git directories from stage operations. | 1 | |||
| GitExcluderTest | class | Drupal\Tests\package_manager\Kernel\PathExcluder | core/ |
Tests Git Excluder. | ||||
| GlobalAttribute | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Global Attribute for filter_html. | 1 | |||
| GlossaryTest | class | Drupal\Tests\views\Functional | core/ |
Tests glossary functionality of views. | ||||
| GlossaryViewTest | class | Drupal\Tests\views\FunctionalJavascript | core/ |
Tests the basic AJAX functionality of the Glossary View. | ||||
| Good | class | Drupal\Tests\Core\Foo | core/ |
#[RunTestsInSeparateProcesses] #[Group('Test')] | ||||
| GotoAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Redirects to a different URL. | 1 | |||
| GotoActionTest | class | Drupal\KernelTests\Core\Action | core/ |
Tests Goto Action. | ||||
| Graph | class | Drupal\Component\Graph | core/ |
Directed acyclic graph manipulation. | 7 | |||
| GraphTest | class | Drupal\Tests\Component\Graph | core/ |
Tests Drupal\Component\Graph\Graph. | ||||
| Grid | class | Drupal\views\Plugin\views\style | core/ |
Style plugin to render each item in a grid cell. | 1 | |||
| GridResponsive | class | Drupal\views\Plugin\views\style | core/ |
Style plugin to render each item in a responsive grid cell. | ||||
| GroupByNumeric | class | Drupal\views\Plugin\views\sort | core/ |
Handler for GROUP BY on simple numeric fields. | ||||
| GroupByNumeric | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle greater than/less than filters. | ||||
| GroupByNumeric | class | Drupal\views\Plugin\views\argument | core/ |
Simple handler for arguments using group by. | ||||
| GroupByTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests UI of aggregate functionality. | ||||
| GroupedExposedFilterTest | class | Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler | core/ |
Tests the grouped exposed filter admin UI. | ||||
| GroupwiseMax | class | Drupal\views\Plugin\views\relationship | core/ |
The relationship handler for groupwise maximum queries. | ||||
| HandleMultiplesTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests process pipelines with scalar and multiple values handling. | ||||
| Handler | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Core class of the plugin. | 2 | |||
| HandlerAliasTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests handler table and field aliases. | ||||
| HandlerAllTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests instances of all handlers. | ||||
| HandlerArgumentUserUidTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the handler of the user: uid Argument. | ||||
| HandlerBase | abstract class | Drupal\views\Plugin\views | core/ |
Base class for Views handler plugins. | 7 | 13 | ||
| HandlerBaseTest | class | Drupal\Tests\views\Unit\Plugin | core/ |
Tests Drupal\views\Plugin\views\HandlerBase. | ||||
| HandlerFieldFieldTest | class | Drupal\Tests\field\Kernel\Views | core/ |
Tests the field rendering in views. | ||||
| HandlerFieldPermissionTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the permission field handler. | ||||
| HandlerFieldRoleTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests the handler of the user: role field. | ||||
| HandlerFieldUserNameTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests the handler of the user: name field. | ||||
| HandlerFilterCurrentUserTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the current user filter handler. |
Pagination
- Previous page
- Page 93
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.