Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 |
---|---|---|---|---|---|---|---|---|
HelpTopicPluginBase | abstract class | Drupal\help | core/ |
Base class for help topic plugins. | 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 | ||
HelpTopicSection | class | Drupal\help\Plugin\HelpSection | core/ |
Provides the help topics list section for the help page. | ||||
HelpTopicTwig | class | Drupal\help | core/ |
Represents a help topic plugin whose definition comes from a Twig file. | ||||
HelpTopicTwigLoader | class | Drupal\help | core/ |
Loads help topic Twig files from the filesystem. | 2 | |||
HelpTwigExtension | class | Drupal\help | core/ |
Defines and registers Drupal Twig extensions for rendering help topics. | 2 | |||
HeredocSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
HereNowdocIdentifierSpacingSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
|||||
Hexadecimal | final class | Ramsey\Uuid\Type | vendor/ |
A value object representing a hexadecimal number | 28 | |||
Hg | class | Composer\Util | vendor/ |
@author Jonas Renaudot <jonas.renaudot@gmail.com> | 2 | |||
Hgblame | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
HgDownloader | class | Composer\Downloader | vendor/ |
@author Per Bernhardt <plb@webfactory.de> | ||||
HgDriver | class | Composer\Repository\Vcs | vendor/ |
@author Per Bernhardt <plb@webfactory.de> | 1 | |||
HhvmDetector | class | Composer\Platform | vendor/ |
1 | ||||
Hidden | class | Drupal\Core\Render\Element | core/ |
Provides a form element for an HTML 'hidden' input element. | 1 | |||
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 | |||
HIncludeFragmentRenderer | class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Implements the Hinclude rendering strategy. | ||||
Histogram | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
Histogram represents the type of a metric that is calculated by aggregating as a Histogram of all reported measurements over a time interval. | 1 | |||
Histogram | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
|||||
Histogram | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | ||||
HistogramBucketReservoir | final class | OpenTelemetry\SDK\Metrics\Exemplar | vendor/ |
1 | ||||
HistogramDataPoint | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
|||||
HistogramDataPoint | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a… | 1 | |||
HistogramInterface | interface | OpenTelemetry\API\Metrics | vendor/ |
2 | 4 | |||
History | class | Symfony\Component\BrowserKit | vendor/ |
History. | 1 | |||
HistoryController | class | Drupal\history\Controller | core/ |
Returns responses for History module routes. | ||||
HistoryHooks | class | Drupal\history\Hook | core/ |
Hook implementations for history. | ||||
HistoryRenderCallback | class | Drupal\history | core/ |
Render callback object. | ||||
HistoryUserTimestamp | class | Drupal\history\Plugin\views\filter | core/ |
Filter for new content. | ||||
HistoryUserTimestamp | class | Drupal\history\Plugin\views\field | core/ |
Field handler to display the marker for new content. | ||||
HistoryViewsHooks | class | Drupal\history\Hook | core/ |
Hook implementations for history. | ||||
HomeCommand | class | Composer\Command | vendor/ |
@author Robert Schönthal <seroscho@googlemail.com> | ||||
Hook | class | Drupal\Core\Hook\Attribute | core/ |
Attribute for defining a class method as a hook implementation. | 105 | |||
HookCollectorPass | class | Drupal\Core\Hook | core/ |
Collects and registers hook implementations. | 2 | |||
HookCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Ensures hook comments on function are correct. | ||||
HookDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Provides a hook-based plugin discovery class. | ||||
HookHelpSection | class | Drupal\help\Plugin\HelpSection | core/ |
Provides the module topics list section for the help page. | ||||
HookInitCssSniff | class | DrupalPractice\Sniffs\FunctionDefinitions | vendor/ |
Checks that drupal_add_css() is not used in hook_init(). | ||||
HookManager | class | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
1 | ||||
HookManagerInterface | interface | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
2 | 1 | |||
HookMethods | final class | PHPUnit\Metadata\Api | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Host | final class | OpenTelemetry\SDK\Resource\Detectors | vendor/ |
|||||
Hostname | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid host name. | ||||
HostnameValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Dmitrii Poddubnyi <dpoddubny@gmail.com> | ||||
HostRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the Request URL host name matches a regular expression. | ||||
HostSupportsRunningProcesses | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 |