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 |
---|---|---|---|---|---|---|---|---|
GroupSequenceProviderInterface | interface | Symfony\Component\Validator | vendor/ |
Defines the interface for a group sequence provider. | 2 | |||
GroupUse | class | PhpParser\Node\Stmt | vendor/ |
1 | ||||
GroupwiseMax | class | Drupal\views\Plugin\views\relationship | core/ |
The relationship handler for groupwise maximum queries. | ||||
GuardTokenParser | final class | Twig\TokenParser | vendor/ |
@internal | 1 | |||
Guid | final class | Ramsey\Uuid\Guid | vendor/ |
Guid represents a UUID with "native" (little-endian) byte order | 1 | |||
GuidBuilder | class | Ramsey\Uuid\Guid | vendor/ |
GuidBuilder builds instances of Guid | 2 | |||
GuidStringCodec | class | Ramsey\Uuid\Codec | vendor/ |
GuidStringCodec encodes and decodes globally unique identifiers (GUID) | 1 | |||
Guzzle | class | OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery | vendor/ |
1 | ||||
GuzzleException | interface | GuzzleHttp\Exception | vendor/ |
2 | 3 | |||
GzipDownloader | class | Composer\Downloader | vendor/ |
GZip archive downloader. | ||||
HaltCompiler | class | PhpParser\Node\Stmt | vendor/ |
|||||
Handler | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Core class of the plugin. | ||||
HandlerBase | abstract class | Drupal\views\Plugin\views | core/ |
Base class for Views handler plugins. | 6 | 10 | ||
HandlerInterface | interface | Symfony\Component\CssSelector\Parser\Handler | vendor/ |
CSS selector handler interface. | 6 | |||
HandlerStack | class | GuzzleHttp | vendor/ |
Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function. | 4 | |||
HandlerStackConfigurator | class | Drupal\Core\Http | core/ |
Defines a class for configuring middlewares on the http handler stack. | ||||
HasEveryBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
HashHandler | class | Symfony\Component\CssSelector\Parser\Handler | vendor/ |
CSS selector comment handler. | ||||
HashNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a "<selector>#<id>" node. | 1 | |||
HashParser | class | Symfony\Component\CssSelector\Parser\Shortcut | vendor/ |
CSS selector hash parser shortcut. | 1 | |||
HasNamedArguments | final class | Symfony\Component\Validator\Attribute | vendor/ |
Hints the loader that some constraint options are required. | 7 | |||
HasPublicDescriptorTrait | trait | Google\Protobuf\Internal | vendor/ |
|||||
HasSomeBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
Header | final class | GuzzleHttp\Psr7 | vendor/ |
|||||
HeaderBag | class | Symfony\Component\HttpFoundation | vendor/ |
HeaderBag is a container for HTTP headers. | 1 | |||
HeaderInterface | interface | Symfony\Component\Mime\Header | vendor/ |
A MIME Header. | 1 | 1 | ||
HeaderProcessor | final class | GuzzleHttp\Handler | vendor/ |
@internal | ||||
HeaderRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the presence of HTTP headers in a Request. | ||||
Headers | final class | Symfony\Component\Mime\Header | vendor/ |
A collection of headers. | 11 | |||
HeadersCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the HeadersCacheContext service, for "per header" caching. | ||||
HeaderUtils | class | Symfony\Component\HttpFoundation | vendor/ |
HTTP header utility functions. | ||||
Heading | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Heading plugin. | 1 | 1 | ||
Help | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Help | final class | PHP_CodeSniffer\Util | vendor/ |
1 | ||||
HelpBlock | class | Drupal\help\Plugin\Block | core/ |
Provides a 'Help' block. | ||||
HelpBreadcrumbBuilder | class | Drupal\help | core/ |
Provides a breadcrumb builder for help topic pages. | 2 | |||
HelpCommand | class | Symfony\Component\Console\Command | vendor/ |
HelpCommand displays the help for a given command. | 1 | |||
HelpController | class | Drupal\help\Controller | core/ |
Controller routines for help routes. | ||||
Helper | abstract class | Symfony\Component\Console\Helper | vendor/ |
Helper is the base class for all helper classes. | 6 | 6 | ||
HelperInterface | interface | Symfony\Component\Console\Helper | vendor/ |
HelperInterface is the interface all helpers must implement. | 1 | 3 | ||
Helpers | class | VariableAnalysis\Lib | vendor/ |
2 | ||||
HelperSet | class | Symfony\Component\Console\Helper | vendor/ |
HelperSet represents a set of helpers to be used with a command. | 7 | |||
HelpHooks | class | Drupal\help\Hook | core/ |
Hook implementations for help. | ||||
HelpSearch | class | Drupal\help\Plugin\Search | core/ |
Handles searching for help using the Search module index. | ||||
HelpSection | class | Drupal\help\Annotation | core/ |
Defines a Plugin annotation object for help page section plugins. | ||||
HelpSection | class | Drupal\help\Attribute | core/ |
Defines a HelpSection attribute object for plugin discovery. | 3 | |||
HelpSectionManager | class | Drupal\help | core/ |
Manages help page section plugins. | 2 | 2 | ||
HelpSectionPluginBase | abstract class | Drupal\help\Plugin\HelpSection | core/ |
Provides a base class for help section plugins. | 2 | |||
HelpSectionPluginInterface | interface | Drupal\help | core/ |
Provides an interface for a plugin for a section of the /admin/help page. | 1 | 1 | ||
HelpTopicDiscovery | class | Drupal\help | core/ |
Discovers help topic plugins from Twig files in help_topics directories. |