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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 6 | 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 | core/ |
Provides a breadcrumb builder for help topic pages. | 1 | 1 | 2 | |
| HelpBreadcrumbBuilder | class | Drupal\help_topics | core/ |
Provides a breadcrumb builder for help topic pages. | ||||
| 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\Plugin\Search | core/ |
Handles searching for help using the Search module index. | 1 | 2 | ||
| HelpSearch | class | Drupal\help_topics\Plugin\Search | core/ |
Handles searching for help using the Search module index. | ||||
| 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. | 1 | 3 | 2 | |
| HelpSectionManager | class | Drupal\help_topics | core/ |
Decorates the Help Section plugin manager to provide help topic search. | ||||
| HelpSectionPluginBase | abstract class | Drupal\help\Plugin\HelpSection | core/ |
Provides a base class for help section plugins. | 5 | 3 | ||
| 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\Functional | core/ |
Verify help display and user access to help based on permissions. | ||||
| 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 | |||
| HelpTopicDiscovery | class | Drupal\help | core/ |
Discovers help topic plugins from Twig files in help_topics directories. | 1 | 3 | ||
| HelpTopicDiscovery | class | Drupal\help_topics | core/ |
Discovers help topic plugins from Twig files in help_topics directories. | ||||
| HelpTopicDiscoveryTest | class | Drupal\Tests\help\Unit | core/ |
@coversDefaultClass \Drupal\help\HelpTopicDiscovery[[api-linebreak]] @group help | ||||
| HelpTopicPluginBase | abstract class | Drupal\help | core/ |
Base class for help topic plugins. | 3 | 2 | ||
| HelpTopicPluginBase | abstract class | Drupal\help_topics | core/ |
Base class for help topic plugins. | ||||
| HelpTopicPluginController | class | Drupal\help_topics\Controller | core/ |
Controller for help topic plugins. | ||||
| HelpTopicPluginController | class | Drupal\help\Controller | core/ |
Controller for help topic plugins. | 1 | 1 | ||
| HelpTopicPluginInterface | interface | Drupal\help_topics | core/ |
Defines an interface for help topic plugin classes. | ||||
| HelpTopicPluginInterface | interface | Drupal\help | core/ |
Defines an interface for help topic plugin classes. | 2 | 2 | ||
| HelpTopicPluginManager | class | Drupal\help | core/ |
Provides the default help_topic manager. | 1 | 1 | 2 | |
| HelpTopicPluginManager | class | Drupal\help_topics | core/ |
Provides the default help_topic manager. | ||||
| HelpTopicPluginManagerInterface | interface | Drupal\help_topics | core/ |
Defines an interface for managing help topics and storing their definitions. | ||||
| HelpTopicPluginManagerInterface | interface | Drupal\help | core/ |
Defines an interface for managing help topics and storing their definitions. | 2 | 3 | ||
| HelpTopicSearchTest | class | Drupal\Tests\help\Functional | core/ |
Verifies help topic search. | ||||
| HelpTopicSection | class | Drupal\help\Plugin\HelpSection | core/ |
Provides the help topics list section for the help page. | 1 | 1 | ||
| HelpTopicSection | class | Drupal\help_topics\Plugin\HelpSection | core/ |
Provides the help topics list section for the help page. | ||||
| HelpTopicsMerge | class | Drupal\Tests\help\Functional\Update | core/ |
Tests merging help topics module when the module is not installed. | ||||
| HelpTopicsSyntaxTest | class | Drupal\Tests\help\Functional | core/ |
Verifies that all core Help topics can be rendered and comply with standards. | ||||
| HelpTopicsTestController | class | Drupal\help_topics_test\Controller | core/ |
Returns the response for help_topics_test routes. | ||||
| HelpTopicsUninstall | class | Drupal\Tests\help\Functional\Update | core/ |
Tests merging help topics module when the module is enabled. | ||||
| HelpTopicTest | class | Drupal\Tests\help\Functional | core/ |
Verifies help topic display and user access to help based on permissions. | ||||
| HelpTopicTranslatedTestBase | abstract class | Drupal\Tests\help\Functional | core/ |
Provides a base class for functional help topic tests that use translation. | 2 | |||
| HelpTopicTranslationTest | class | Drupal\Tests\help\Functional | core/ |
Verifies help topic translations. | ||||
| HelpTopicTwig | class | Drupal\help | core/ |
Represents a help topic plugin whose definition comes from a Twig file. | 1 | 3 |
Pagination
- Previous page
- Page 87
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.