Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 6 | |||
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 | |||
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. | ||||
HalEntityNormalizationTrait | trait | Drupal\Tests\hal\Functional\EntityResource | core/ |
Trait for EntityResourceTestBase subclasses testing formats using HAL. | 19 | |||
HalLinkManagerTest | class | Drupal\Tests\hal\Kernel | core/ |
@coversDefaultClass \Drupal\hal\LinkManager\LinkManager[[api-linebreak]] @group hal @group legacy | ||||
HalServiceProvider | class | Drupal\hal | core/ |
Adds hal+json as known format. | ||||
HalSettingsDeletionUpdateTest | class | Drupal\Tests\hal\Functional\Update | core/ |
Ensures that update hook is run properly for deleting obsolete Hal settings. | ||||
Handle | class | Drupal\Component\Assertion | core/ |
Handler for runtime assertion failures. | 2 | |||
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. | 1 | |||
HandlerAggregatorTest | class | Drupal\Tests\aggregator\Functional\Views\Handler | core/ |
Tests instances of the aggregator related view handlers. | ||||
HandlerAliasTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests handler table and field aliases. | ||||
HandlerAllTest | class | Drupal\Tests\views\Functional\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_ui\Functional | core/ |
Tests handler UI for views. | ||||
HandlerTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests abstract handler definitions. | ||||
HandlerTestTrait | trait | Drupal\Tests\views\Unit\Plugin | core/ |
Test trait to mock dependencies of a handler. | 1 | |||
HeadersCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the HeadersCacheContext service, for "per header" caching. | 1 | 2 | ||
HeadersCacheContextTest | class | Drupal\Tests\Core\Cache\Context | core/ |
@coversDefaultClass \Drupal\Core\Cache\Context\HeadersCacheContext[[api-linebreak]] @group Cache | ||||
Heading | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Heading plugin. | 5 | 1 | ||
HeadingPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language[[api-linebreak]] @group ckeditor5 @internal | ||||
HelpBlock | class | Drupal\help\Plugin\Block | core/ |
Provides a 'Help' block. | ||||
HelpBlockTest | class | Drupal\Tests\help\Functional | core/ |
Tests display of help block. | ||||
HelpBreadcrumbBuilder | class | Drupal\help_topics | core/ |
Provides a breadcrumb builder for help topic pages. | 2 | |||
HelpController | class | Drupal\help\Controller | core/ |
Controller routines for help routes. | ||||
HelpEmptyPageTest | class | Drupal\Tests\help\Kernel | core/ |
Tests the empty HTML page. | ||||
HelpPageOrderTest | class | Drupal\Tests\help\Functional | core/ |
Verify the order of the help page. | 1 | |||
HelpPageReverseOrderTest | class | Drupal\Tests\help\Functional | core/ |
Verify the order of the help page with an alter hook. | ||||
HelpPageTestController | class | Drupal\help_page_test | core/ |
Provides controllers for testing the help block. | ||||
HelpSearch | class | Drupal\help_topics\Plugin\Search | core/ |
Handles searching for help using the Search module index. | 1 |
Pagination
- Previous page
- Page 81
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.