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 |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| 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/ |
Interface for test handlers. | 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/ |
Tests Drupal\Core\Cache\Context\HeadersCacheContext. | ||||
| Heading | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Heading plugin. | 6 | 1 | ||
| HeadingPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language. | ||||
| HelpBlock | class | Drupal\help\Plugin\Block | core/ |
Provides a 'Help' block. | ||||
| HelpBlockTest | class | Drupal\Tests\help\Functional | core/ |
Tests display of help block. | ||||
| HelpBlockTest | class | Drupal\Tests\help\Kernel | core/ |
Tests display of help block. | ||||
| HelpBreadcrumbBuilder | class | Drupal\help | 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. | ||||
| Helper | final class | Drupal\admin | core/ |
Admin helper methods. | 4 | |||
| Helper | final class | Drupal\default_admin | core/ |
Admin helper methods. | 4 | |||
| HelpHooks | class | Drupal\help\Hook | core/ |
Hook implementations for help. | ||||
| HelpNoSearchUpgradeTest | class | Drupal\Tests\help\Functional | core/ |
Tests that the search_help module is not installed after help updates. | ||||
| HelpPageOrderTest | class | Drupal\Tests\help\Kernel | core/ |
Verify the order of the help page. | 1 | |||
| 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. | ||||
| HelpPageReverseOrderTest | class | Drupal\Tests\help\Kernel | 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. | ||||
| HelpPageTestHooks | class | Drupal\help_page_test\Hook | core/ |
Hook implementations for help_page_test. | ||||
| HelpSearch | class | Drupal\help\Plugin\Search | core/ |
Handles searching for help using the Search module index. | 1 | |||
| HelpSearchHelpUpgradeTest | class | Drupal\Tests\help\Functional | core/ |
Tests that the search_help module is installed after help updates. | ||||
| HelpSearchPluginTest | class | Drupal\Tests\search_help\Kernel | core/ |
Tests search plugin behaviors. | ||||
| HelpSearchPluginTest | class | Drupal\Tests\search_help\Kernel | core/ |
Tests search plugin behaviors. | ||||
| HelpSearchPluginTest | class | Drupal\Tests\help\Kernel | core/ |
Tests search plugin behaviors. | ||||
| HelpSection | class | Drupal\help\Attribute | core/ |
Defines a HelpSection attribute object for plugin discovery. | 5 | |||
| HelpSection | class | Drupal\help\Annotation | core/ |
Defines a Plugin annotation object for help page section plugins. | ||||
| HelpSectionManager | class | Drupal\help | core/ |
Manages help page section plugins. | 3 | 2 | ||
| HelpSectionPluginBase | abstract class | Drupal\help\Plugin\HelpSection | core/ |
Provides a base class for help section plugins. | 4 | 2 | ||
| HelpSectionPluginInterface | interface | Drupal\help | core/ |
Provides an interface for a plugin for a section of the /admin/help page. | 1 | 1 | ||
| HelpTest | class | Drupal\Tests\help\Kernel | core/ |
Verify help display and user access to help based on permissions. | ||||
| HelpTest | class | Drupal\Tests\help\Functional | core/ |
Verify help display and user access to help based on permissions. | ||||
| HelpTestHooks | class | Drupal\help_test\Hook | core/ |
Hook implementations for help_test. | ||||
| HelpTestTwigExtension | class | Drupal\help_topics_twig_tester | core/ |
Defines and registers Drupal Twig extensions for testing help topics. | 2 | |||
| HelpTestTwigNodeVisitor | class | Drupal\help_topics_twig_tester | core/ |
Defines a Twig node visitor for testing help topics. | 1 |
Pagination
- Previous page
- Page 95
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.