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 |
---|---|---|---|---|---|---|---|---|
HttpExceptionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes an HttpException in compliance with the JSON:API specification. | 2 | 2 | ||
HttpExceptionNormalizerValue | class | Drupal\jsonapi\Normalizer\Value | core/ |
Helps normalize exceptions in compliance with the JSON:API spec. | 1 | |||
HttpExceptionSubscriberBase | abstract class | Drupal\Core\EventSubscriber | core/ |
Utility base class for exception subscribers. | 6 | 2 | ||
HttpFactory | final class | GuzzleHttp\Psr7 | vendor/ |
Implements all of the PSR-17 interfaces. | ||||
HttpFoundationFactory | class | Symfony\Bridge\PsrHttpMessage\Factory | vendor/ |
@author Kévin Dunglas <dunglas@gmail.com> | 1 | |||
HttpFoundationFactoryInterface | interface | Symfony\Bridge\PsrHttpMessage | vendor/ |
Creates Symfony Request and Response instances from PSR-7 ones. | 1 | 3 | ||
HttpFulfilledPromise | final class | Http\Client\Promise | vendor/ |
|||||
HttpKernel | class | Symfony\Component\HttpKernel | vendor/ |
HttpKernel notifies events to convert a Request object to a Response one. | ||||
HttpKernelBrowser | class | Symfony\Component\HttpKernel | vendor/ |
Simulates a browser and makes requests to an HttpKernel instance. | 1 | |||
HttpKernelInterface | interface | Symfony\Component\HttpKernel | vendor/ |
HttpKernelInterface handles a Request to convert it to a Response. | 17 | 33 | ||
HttpMessageFactoryInterface | interface | Symfony\Bridge\PsrHttpMessage | vendor/ |
Creates PSR HTTP Request and Response instances from Symfony ones. | 1 | 3 | ||
HttpPlugClientResolver | final class | OpenTelemetry\SDK\Common\Adapter\HttpDiscovery | vendor/ |
|||||
HttpRejectedPromise | final class | Http\Client\Promise | vendor/ |
|||||
HTTPStatusCode | class | Drupal\views\Plugin\views\area | core/ |
Alter the HTTP response status code used by the view. | ||||
HttpTransportException | class | Symfony\Component\Mailer\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
HuradInstaller | class | Composer\Installers | vendor/ |
|||||
HWLDFWordAccumulator | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 1 | |||
Hydrator | final class | Symfony\Component\VarExporter | vendor/ |
Utility class to hydrate the properties of an object. | 2 | |||
Hydrator | class | Symfony\Component\VarExporter\Internal | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 5 | |||
I18nQueryTrait | trait | Drupal\content_translation\Plugin\migrate\source | core/ |
Gets an i18n translation from the source database. | 4 | |||
Iban | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid bank account number according to the IBAN format. | ||||
IbanValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Manuel Reinhard <manu@sprain.ch> @author Michael Schummel @author Bernhard Schussek <bschussek@gmail.com> | ||||
Icon | class | Drupal\Core\Render\Element | core/ |
Provides a render element to display an icon. | ||||
IconBuilderInterface | interface | Drupal\Core\Layout\Icon | core/ |
Provides an interface for building layout icons. | 1 | |||
IconCollector | class | Drupal\Core\Theme\Icon | core/ |
A CacheCollector implementation for building icons info. | 1 | |||
IconDefinition | class | Drupal\Core\Theme\Icon | core/ |
Handle an icon definition. | 4 | |||
IconDefinitionInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon definition. | 1 | 3 | ||
IconDefinitionInvalidDataException | class | Drupal\Core\Theme\Icon\Exception | core/ |
Raised when icon data is invalid. | 1 | |||
IconExtractor | class | Drupal\Core\Theme\Icon\Attribute | core/ |
The icon_extractor attribute. | 4 | |||
IconExtractorBase | abstract class | Drupal\Core\Theme\Icon | core/ |
Base class for icon extractor plugins. | 1 | |||
IconExtractorInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon_extractor plugins. | 2 | |||
IconExtractorPluginManager | class | Drupal\Core\Theme\Icon | core/ |
IconExtractor plugin manager. | 1 | |||
IconExtractorSettingsForm | class | Drupal\Core\Theme\Icon | core/ |
Handle icon extractor settings form conversion from YAML to Drupal Form API. | ||||
IconExtractorWithFinder | abstract class | Drupal\Core\Theme\Icon | core/ |
Base class for icon_extractor plugins. | 3 | 3 | ||
IconExtractorWithFinderInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon_extractor plugins. | 1 | |||
IconFinder | class | Drupal\Core\Theme\Icon | core/ |
Icon finder to discover files under specific paths or URLs. | ||||
IconFinderInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon finder. | 1 | |||
IconMimeTypes | final class | Drupal\file | core/ |
A utility class for working with MIME types. | 1 | |||
IconPackConfigErrorException | class | Drupal\Core\Theme\Icon\Exception | core/ |
Raised when we have an icon pack error. | 3 | |||
IconPackExtractorForm | class | Drupal\Core\Theme\Icon | core/ |
The icon pack extractor form plugin. | 3 | |||
IconPackManager | class | Drupal\Core\Theme\Icon\Plugin | core/ |
Defines an icon pack plugin manager to deal with icons. | ||||
IconPackManagerInterface | interface | Drupal\Core\Theme\Icon\Plugin | core/ |
Interface for icon pack manager. | 1 | |||
IconsTwigExtension | final class | Drupal\Core\Template | core/ |
Twig extension for icon. | ||||
Iconv | final class | Symfony\Polyfill\Iconv | vendor/ |
iconv implementation in pure PHP, UTF-8 centric. | ||||
IdAuditor | class | Drupal\migrate\Audit | core/ |
Audits migrations that create content entities in the destination system. | 1 | |||
IdConflictForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade Id Conflict form. | 1 | |||
IdempotencyLevel | class | Google\Protobuf\Internal\MethodOptions | vendor/ |
Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST. | ||||
Identical | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
1 | ||||
IdenticalTo | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is identical to another value. | 1 | |||
IdenticalToValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are identical (===). |