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 |
|---|---|---|---|---|---|---|---|---|
| HtmlRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for HTML requests. | 2 | |||
| HtmlResponse | class | Drupal\Core\Render | core/ |
Response that contains and can expose cacheability metadata and attachments. | 1 | 18 | ||
| HtmlResponseAttachmentsProcessor | class | Drupal\Core\Render | core/ |
Processes attachments of HTML responses. | 1 | 1 | 2 | |
| HtmlResponseAttachmentsTest | class | Drupal\Tests\system\Functional\Render | core/ |
Functional tests for HtmlResponseAttachmentsProcessor. | ||||
| HtmlResponseBigPipeSubscriber | class | Drupal\big_pipe\EventSubscriber | core/ |
Response subscriber to replace the HtmlResponse with a BigPipeResponse. | 2 | |||
| HtmlResponsePlaceholderStrategySubscriber | class | Drupal\Core\EventSubscriber | core/ |
HTML response subscriber to allow for different placeholder strategies. | 2 | |||
| HtmlResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to handle HTML responses. | 2 | |||
| HTMLRestrictions | final class | Drupal\ckeditor5 | core/ |
Represents a set of HTML restrictions. | 19 | |||
| HTMLRestrictionsTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\HTMLRestrictions. | ||||
| HtmlSerializerRules | class | Drupal\Component\Utility | core/ |
Drupal-specific HTML5 serializer rules. | ||||
| HtmlTag | class | Drupal\Core\Render\Element | core/ |
Provides a render element for any HTML tag, with properties and value. | 1 | |||
| HtmlTagTest | class | Drupal\Tests\Core\Render\Element | core/ |
Tests Drupal\Core\Render\Element\HtmlTag. | ||||
| HtmlTest | class | Drupal\Tests\Component\Utility | core/ |
Tests \Drupal\Component\Utility\Html. | ||||
| HtmlTestMarkup | class | Drupal\Tests\Component\Utility | core/ |
Marks an object's __toString() method as returning markup. | ||||
| HtmlToTextTest | class | Drupal\Tests\system\Unit\Mail | core/ |
Tests for \Drupal\Core\Mail\MailFormatHelper::htmlToText(). | ||||
| Htmx | class | Drupal\Core\Htmx | core/ |
Presents the HTMX controls for developers to use with render arrays. | 8 | |||
| HtmxAssetLoadTestSetup | class | Drupal\TestSite | core/ |
Setup file used by tests/src/Nightwatch/Tests/htmxAssetLoadTest.js. | ||||
| HtmxAttributesTest | class | Drupal\Tests\Core\Htmx | core/ |
Test all attribute-related Htmx public methods. | ||||
| HtmxContentViewSubscriber | class | Drupal\Core\EventSubscriber | core/ |
View subscriber rendering main content from `_htmx_route` option routes. | 2 | |||
| HtmxDynamicFormTest | class | Drupal\FunctionalJavascriptTests\Core\Htmx | core/ |
Tests that dynamic forms powered by HTMX work as expected. | ||||
| HtmxHeadersTest | class | Drupal\Tests\Core\Htmx | core/ |
Test all header-related Htmx public methods. | ||||
| HtmxLocationResponseData | class | Drupal\Core\Htmx | core/ |
Optional data object for HX-Location. | 1 | |||
| HtmxRenderer | class | Drupal\Core\Render\MainContent | core/ |
Main content renderer for HTMX requests. | 2 | 2 | ||
| HtmxRendererCacheTest | class | Drupal\FunctionalTests\Htmx | core/ |
Tests the cache headers set HtmxRenderer responses. | ||||
| HtmxRendererTest | class | Drupal\KernelTests\Core\Htmx | core/ |
Verifies HtmxRenderer. | ||||
| HtmxRequestInfoTest | class | Drupal\Tests\Core\Htmx | core/ |
Test all HtmxRequestInfoTrait methods. | ||||
| HtmxRequestInfoTrait | trait | Drupal\Core\Htmx | core/ |
Provides methods for getting information about the HTMX request. | 2 | |||
| HtmxRequestTest | class | Drupal\KernelTests\Core\Htmx | core/ |
Test the request attributes for HTMX. | ||||
| HtmxTestAjaxForm | class | Drupal\test_htmx\Form | core/ |
A small form used to insert an HTMX powered element using ajax API. | 1 | |||
| HtmxTestAttachmentsController | final class | Drupal\test_htmx\Controller | core/ |
Returns responses for HTMX Test Attachments routes. | 1 | |||
| HtmxTestForm | class | Drupal\test_htmx\Form | core/ |
A small form used to test HTMX dynamic forms. | 1 | |||
| HtmxUtilitiesTest | class | Drupal\Tests\Core\Htmx | core/ |
Test all Htmx public utility methods. | ||||
| HtRouterTest | class | Drupal\BuildTests\Framework\Tests | core/ |
Tests Drupal\BuildTests\Framework\BuildTestBase. | ||||
| Http4xxController | class | Drupal\system\Controller | core/ |
Controller for default HTTP 4xx responses. | ||||
| HttpExceptionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes an HttpException in compliance with the JSON:API specification. | 2 | 4 | 2 | |
| HttpExceptionNormalizerTest | class | Drupal\Tests\jsonapi\Unit\Normalizer | core/ |
Tests Drupal\jsonapi\Normalizer\HttpExceptionNormalizer. | ||||
| HttpExceptionNormalizerValue | class | Drupal\jsonapi\Normalizer\Value | core/ |
Helps normalize exceptions in compliance with the JSON:API spec. | 2 | |||
| HttpExceptionSubscriberBase | abstract class | Drupal\Core\EventSubscriber | core/ |
Utility base class for exception subscribers. | 6 | 2 | ||
| HttpKernelUiHelperTrait | trait | Drupal\Tests | core/ |
Provides UI helper methods using the HTTP kernel to make requests. | 4 | |||
| HTTPStatusCode | class | Drupal\views\Plugin\views\area | core/ |
Alter the HTTP response status code used by the view. | ||||
| HWLDFWordAccumulator | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 2 | |||
| HWLDFWordAccumulatorTest | class | Drupal\Tests\Component\Diff\Engine | core/ |
Test HWLDFWordAccumulator. | ||||
| I18nQueryTrait | trait | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Gets an i18n translation from the source database. | 4 | |||
| I18nQueryTraitTest | class | Drupal\Tests\migrate_drupal\Kernel | core/ |
Tests instantiating migrate source plugins using I18nQueryTrait. | ||||
| Icon | class | Drupal\Core\Render\Element | core/ |
Provides a render element to display an icon. | 1 | |||
| IconBuilderInterface | interface | Drupal\Core\Layout\Icon | core/ |
Provides an interface for building layout icons. | 1 | |||
| IconBuilderTest | class | Drupal\KernelTests\Core\Layout | core/ |
Tests Drupal\Core\Layout\Icon\SvgIconBuilder. | ||||
| IconCollector | class | Drupal\Core\Theme\Icon | core/ |
A CacheCollector implementation for building icons info. | 2 | |||
| IconDefinition | class | Drupal\Core\Theme\Icon | core/ |
Handle an icon definition. | 11 | |||
| IconDefinitionInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon definition. | 1 | 7 |
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.