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 |
|---|---|---|---|---|---|---|---|---|
| HelpThemeHooks | class | Drupal\help\Hook | core/ |
Hook implementations for help. | ||||
| HelpTopicDiscovery | class | Drupal\help | core/ |
Discovers help topic plugins from Twig files in help_topics directories. | 3 | |||
| HelpTopicDiscoveryTest | class | Drupal\Tests\help\Unit | core/ |
Tests Drupal\help\HelpTopicDiscovery. | ||||
| HelpTopicPluginBase | abstract class | Drupal\help | core/ |
Base class for help topic plugins. | 2 | 1 | ||
| HelpTopicPluginController | class | Drupal\help\Controller | core/ |
Controller for help topic plugins. | ||||
| HelpTopicPluginInterface | interface | Drupal\help | core/ |
Defines an interface for help topic plugin classes. | 1 | 1 | ||
| HelpTopicPluginManager | class | Drupal\help | core/ |
Provides the default help_topic manager. | 2 | |||
| HelpTopicPluginManagerInterface | interface | Drupal\help | core/ |
Defines an interface for managing help topics and storing their definitions. | 1 | 2 | ||
| HelpTopicSearchTest | class | Drupal\Tests\search_help\Functional | core/ |
Verifies help topic search. | ||||
| 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. | ||||
| HelpTopicsSyntaxTest | class | Drupal\Tests\help\Functional | core/ |
Verifies that all core Help topics can be rendered and comply with standards. | ||||
| HelpTopicsSyntaxTest | class | Drupal\Tests\help\Kernel | 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. | ||||
| HelpTopicsTestHooks | class | Drupal\help_topics_test\Hook | core/ |
Hook implementations for help_topics_test. | ||||
| HelpTopicTest | class | Drupal\Tests\help\Functional | core/ |
Verifies help topic display and user access to help based on permissions. | ||||
| HelpTopicTest | class | Drupal\Tests\help\Kernel | 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. | 3 | 1 | ||
| 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. | 2 | |||
| HelpTopicTwigLoader | class | Drupal\help | core/ |
Loads help topic Twig files from the filesystem. | 1 | 2 | ||
| HelpTopicTwigLoaderTest | class | Drupal\Tests\help\Unit | core/ |
Unit test for the HelpTopicTwigLoader class. | ||||
| HelpTopicTwigTest | class | Drupal\Tests\help\Unit | core/ |
Unit test for the HelpTopicTwig class. | ||||
| HelpTwigExtension | class | Drupal\help | core/ |
Defines and registers Drupal Twig extensions for rendering help topics. | 2 | |||
| HexToHslTrait | trait | Drupal\olivero | core/ |
Trait to convert Hex to HSL. | 2 | |||
| Hidden | class | Drupal\Core\Render\Element | core/ |
Provides a form element for an HTML 'hidden' input element. | 1 | |||
| HiddenFieldSelector | class | Drupal\Tests | core/ |
Extends PartialNamedSelector to allow retrieval of hidden fields. | ||||
| HiddenTaxonomyTermReferenceFieldWizardTest | class | Drupal\Tests\node\Functional\Views\Wizard | core/ |
Tests node wizard and content type with hidden Taxonomy Term Reference field. | ||||
| HiddenTestItem | class | Drupal\field_test\Plugin\Field\FieldType | core/ |
Defines the 'hidden_test' entity field item. | ||||
| HighestIdInterface | interface | Drupal\migrate\Audit | core/ |
Defines an interface for destination and ID maps which track a highest ID. | 2 | 2 | ||
| HighlightCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for highlighting a certain new piece of html. | 1 | |||
| HighPriorityThemeNegotiator | class | Drupal\theme_test\Theme | core/ |
Implements a test theme negotiator which was configured with a high priority. | 2 | |||
| HighWaterNotJoinableTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the high water handling. | ||||
| HighWaterTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests migration high water property. | ||||
| HighWaterTest | class | Drupal\migrate_high_water_test\Plugin\migrate\source | core/ |
Source plugin for migration high water tests. | 1 | |||
| HoldTestHelper | class | Drupal\hold_test | core/ |
Contains methods for testing hold request/response. | 3 | |||
| HoldTestSubscriber | class | Drupal\hold_test\EventSubscriber | core/ |
Response subscriber to test hold. | 1 | 2 | ||
| Hook | class | Drupal\Core\Hook\Attribute | core/ |
Attribute for defining a class method as a hook implementation. | 481 | |||
| HookAlterOrderTest | class | Drupal\KernelTests\Core\Hook | core/ |
Tests Hook Alter Order. | ||||
| HookAttributeInterface | interface | Drupal\Core\Hook\Attribute | core/ |
Common interface for attributes used for hook discovery. | 4 | 2 | ||
| HookAttributeInvokeHook | class | Drupal\hook_collector_hook_attribute\Hook | core/ |
Test Hook attribute named arguments. | ||||
| HookAttributeNamedArgumentsHook | class | Drupal\hook_collector_hook_attribute\Hook | core/ |
Test Hook attribute named arguments. | ||||
| HookCollectorKeyValueWritePass | class | Drupal\Core\Hook | core/ |
Stores hook implementations in keyvalue and clears cache. | 2 | |||
| HookCollectorPass | class | Drupal\Core\Hook | core/ |
Collects and registers hook implementations. | 4 | |||
| HookCollectorPassTest | class | Drupal\Tests\system\Functional\Hook | core/ |
Tests services in .module files. | ||||
| HookCollectorPassTest | class | Drupal\KernelTests\Core\Hook | core/ |
Tests Drupal\Core\Hook\HookCollectorPass. | ||||
| HookCollectorPassTest | class | Drupal\Tests\Core\Hook | core/ |
Tests Drupal\Core\Hook\HookCollectorPass. | ||||
| HookDependsOnModule | class | Drupal\Core\Hook\Attribute | core/ |
Makes hook registration dependent on a module being installed. | 6 | |||
| HookDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Provides a hook-based plugin discovery class. | 1 | |||
| HookDiscoveryTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
Tests Drupal\Core\Plugin\Discovery\HookDiscovery. |
Pagination
- Previous page
- Page 96
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.