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 |
|---|---|---|---|---|---|---|---|---|
| GenericTest | class | Drupal\Tests\filter\Functional | core/ |
Generic module test for filter. | ||||
| GenericTest | class | Drupal\Tests\serialization\Functional | core/ |
Generic module test for serialization. | ||||
| GenericTest | class | Drupal\Tests\language\Functional | core/ |
Generic module test for language. | ||||
| GenericTest | class | Drupal\Tests\telephone\Functional | core/ |
Generic module test for telephone. | ||||
| GenericTest | class | Drupal\Tests\dynamic_page_cache\Functional | core/ |
Generic module test for dynamic_page_cache. | ||||
| GenericTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Generic module test for jsonapi. | ||||
| GenericTest | class | Drupal\Tests\config_translation\Functional | core/ |
Generic module test for config_translation. | ||||
| 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. | ||||
| GlobalAttribute | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Global Attribute for filter_html. | 1 | |||
| GlobalThemeSettingsDefaultLogoUrlUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests update of system.theme.global:logo.url if it's still the default of "". | ||||
| 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. | ||||
| GotoAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Redirects to a different URL. | ||||
| Graph | class | Drupal\Component\Graph | core/ |
Directed acyclic graph manipulation. | 7 | |||
| GraphTest | class | Drupal\Tests\Component\Graph | core/ |
@coversDefaultClass \Drupal\Component\Graph\Graph[[api-linebreak]] @group 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\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. | ||||
| GroupByNumeric | class | Drupal\views\Plugin\views\sort | core/ |
Handler for GROUP BY on simple numeric fields. | ||||
| 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. | ||||
| Handle | in drupal:10.1.0 and is removed from drupal:11.0.0. Use assert_options(ASSERT_EXCEPTION, TRUE). |
class | Drupal\Component\Assertion | core/ |
Handler for runtime assertion failures. | |||
| 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/ |
@coversDefaultClass \Drupal\views\Plugin\views\HandlerBase[[api-linebreak]] @group Views | ||||
| 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. | ||||
| HandlerFilterPermissionTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the permissions filter handler. | ||||
| HandlerFilterRolesTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the roles filter handler. | ||||
| HandlerFilterUserNameTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests the handler of the user: name filter. | ||||
| HandlerInterface | interface | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
1 | ||||
| HandlerStackConfigurator | class | Drupal\Core\Http | core/ |
Defines a class for configuring middlewares on the http handler stack. | 2 | |||
| HandlerTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests abstract handler definitions. | ||||
| HandlerTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests handler UI for views. |
Pagination
- Previous page
- Page 86
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.