Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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
HostSupportsRunningProcessesInterface interface PhpTuf\ComposerStager\API\Precondition\Service vendor/php-tuf/composer-stager/src/API/Precondition/Service/HostSupportsRunningProcessesInterface.php Asserts that the host can run independent PHP processes. 1 2
HostTrait trait Symfony\Component\Routing\Loader\Configurator\Traits vendor/symfony/routing/Loader/Configurator/Traits/HostTrait.php @internal 2
HRTime final class PHPUnit\Event\Telemetry vendor/phpunit/phpunit/src/Event/Value/Telemetry/HRTime.php @psalm-immutable 4
HtaccessWriter class Drupal\Core\File core/lib/Drupal/Core/File/HtaccessWriter.php Provides functions to manage Apache .htaccess files.
HtaccessWriterInterface interface Drupal\Core\File core/lib/Drupal/Core/File/HtaccessWriterInterface.php Interface for managing Apache .htaccess files. 1
Html class Drupal\Component\Utility core/lib/Drupal/Component/Utility/Html.php Provides DOMDocument helpers for parsing and serializing HTML strings. 112
Html final class PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/Report/Html.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
Html final class PHPUnit\TextUI\XmlConfiguration\Logging\TestDox vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Logging/TestDox/Html.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
HTML class PHP_CodeSniffer\Generators vendor/squizlabs/php_codesniffer/src/Generators/HTML.php
Html class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Html.php Provides a render element for an entire HTML page: <html> plus its children.
HTML5 class Masterminds vendor/masterminds/html5/src/HTML5.php This class offers convenience methods for parsing and serializing HTML5. It is roughly designed to mirror the \DOMDocument native class. 2
HTML5Entities class Masterminds\HTML5\Serializer vendor/masterminds/html5/src/HTML5/Serializer/HTML5Entities.php A mapping of entities to their html5 representation. Used for older PHP versions that don't have the mapping.
HtmlCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/HtmlCommand.php AJAX command for calling the jQuery html() method. 2
HtmlDescriptor class Symfony\Component\VarDumper\Command\Descriptor vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php Describe collected data clones for html output. 1
HtmlDumper class Symfony\Component\VarDumper\Dumper vendor/symfony/var-dumper/Dumper/HtmlDumper.php HtmlDumper dumps variables as HTML. 6
HtmlDumper final class Twig\Profiler\Dumper vendor/twig/twig/src/Profiler/Dumper/HtmlDumper.php @author Fabien Potencier <fabien@symfony.com>
HtmlEntityFormController class Drupal\Core\Entity core/lib/Drupal/Core/Entity/HtmlEntityFormController.php Wrapping controller for entity forms that serve as the main page body.
HtmlErrorRenderer class Symfony\Component\ErrorHandler\ErrorRenderer vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php @author Yonel Ceruto <yonelceruto@gmail.com> 1
HtmlEscapedString final class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/HtmlEscapedString.php Value Object representing the type 'string'. 1
HtmlEscapedText class Drupal\Component\Render core/lib/Drupal/Component/Render/HtmlEscapedText.php Escapes HTML syntax characters to HTML entities for display in markup. 1
HtmlExtension class Symfony\Component\CssSelector\XPath\Extension vendor/symfony/css-selector/XPath/Extension/HtmlExtension.php XPath expression translator HTML extension. 1
HtmlFormController class Drupal\Core\Controller core/lib/Drupal/Core/Controller/HtmlFormController.php Wrapping controller for forms that serve as the main page body.
HtmlList class Drupal\views\Plugin\views\style core/modules/views/src/Plugin/views/style/HtmlList.php Style plugin to render each item in an ordered or unordered list.
HtmlOutputFormatter class Composer\Console vendor/composer/composer/src/Composer/Console/HtmlOutputFormatter.php @author Jordi Boggiano <j.boggiano@seld.be>
HtmlRenderer final class PHPUnit\Logging\TestDox vendor/phpunit/phpunit/src/Logging/TestDox/HtmlRenderer.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
HtmlRenderer class Drupal\Core\Render\MainContent core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php Default main content renderer for HTML requests.
HtmlResponse class Drupal\Core\Render core/lib/Drupal/Core/Render/HtmlResponse.php Response that contains and can expose cacheability metadata and attachments. 1 9
HtmlResponseAttachmentsProcessor class Drupal\Core\Render core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Processes attachments of HTML responses. 1 1
HtmlResponseBigPipeSubscriber class Drupal\big_pipe\EventSubscriber core/modules/big_pipe/src/EventSubscriber/HtmlResponseBigPipeSubscriber.php Response subscriber to replace the HtmlResponse with a BigPipeResponse. 2
HtmlResponsePlaceholderStrategySubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php HTML response subscriber to allow for different placeholder strategies.
HtmlResponseSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php Response subscriber to handle HTML responses.
HTMLRestrictions final class Drupal\ckeditor5 core/modules/ckeditor5/src/HTMLRestrictions.php Represents a set of HTML restrictions. 13
HtmlSerializerRules class Drupal\Component\Utility core/lib/Drupal/Component/Utility/HtmlSerializerRules.php Drupal-specific HTML5 serializer rules.
HtmlTag class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/HtmlTag.php Provides a render element for any HTML tag, with properties and value.
HtmlToTextConverterInterface interface Symfony\Component\Mime\HtmlToTextConverter vendor/symfony/mime/HtmlToTextConverter/HtmlToTextConverterInterface.php @author Fabien Potencier <fabien@symfony.com> 2
Http4xxController class Drupal\system\Controller core/modules/system/src/Controller/Http4xxController.php Controller for default HTTP 4xx responses.
HttpAsyncClient interface Http\Client vendor/php-http/httplug/src/HttpAsyncClient.php Sends a PSR-7 Request in an asynchronous way by returning a Promise. 1 7
HttpAsyncClientDiscovery final class Http\Discovery vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php Finds an HTTP Asynchronous Client. 1
HttpBrowser class Symfony\Component\BrowserKit vendor/symfony/browser-kit/HttpBrowser.php An implementation of a browser using the HttpClient component to make real HTTP requests.
HttpCache class Symfony\Component\HttpKernel\HttpCache vendor/symfony/http-kernel/HttpCache/HttpCache.php Cache provides HTTP caching. 1
HttpClient

since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/

interface Http\Client vendor/php-http/httplug/src/HttpClient.php Provide the Httplug HttpClient interface for BC. You should typehint Psr\Http\Client\ClientInterface in new code 1 4
HttpClientDiscovery

This will be removed in 2.0. Consider using Psr18ClientDiscovery.

final class Http\Discovery vendor/php-http/discovery/src/HttpClientDiscovery.php Finds an HTTP Client.
HttpClientKernel final class Symfony\Component\HttpKernel vendor/symfony/http-kernel/HttpClientKernel.php An implementation of a Symfony HTTP kernel using a "real" HTTP client.
HttpConfig class OpenTelemetry\API\Instrumentation\Configuration\General vendor/open-telemetry/api/Instrumentation/Configuration/General/HttpConfig.php
HttpDownloader class Composer\Util vendor/composer/composer/src/Composer/Util/HttpDownloader.php @author Jordi Boggiano <j.boggiano@seld.be> @phpstan-type Request array{url: non-empty-string, options: mixed[], copyTo: string|null} @phpstan-type Job array{id: int, status: int, request: Request, sync: bool, origin: string, resolve?: callable,… 19
HttpEndpointResolver class OpenTelemetry\Contrib\Otlp vendor/open-telemetry/exporter-otlp/HttpEndpointResolver.php Resolves non-signal-specific OTLP HTTP endpoints to signal-specific ones according to the specification.
HttpEndpointResolverInterface interface OpenTelemetry\Contrib\Otlp vendor/open-telemetry/exporter-otlp/HttpEndpointResolverInterface.php 1
HttpException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/HttpException.php HttpException. 18 19
HttpException class Http\Client\Exception vendor/php-http/httplug/src/Exception/HttpException.php Thrown when a response was received but the request itself failed.
HttpExceptionInterface interface Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/HttpExceptionInterface.php Interface for HTTP error exceptions. 1 15

Pagination

  • First page
  • Previous page
  • …
  • Page 86
  • Page 87
  • Page 88
  • Page 89
  • Page 90
  • Page 91
  • Page 92
  • Page 93
  • Page 94
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal