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 |
|---|---|---|---|---|---|---|---|---|
| HookHelpSection | class | Drupal\help\Plugin\HelpSection | core/ |
Provides the module topics list section for the help page. | ||||
| HookLoaderTest | class | Drupal\KernelTests\Core\Hook | core/ |
Test hook loading. | ||||
| HookOrderTest | class | Drupal\KernelTests\Core\Hook | core/ |
Tests Hook Order. | ||||
| HookOrderTestTrait | trait | Drupal\KernelTests\Core\Hook | core/ |
Provides methods to support testing hooks. | ||||
| HookRequirementsTest | class | Drupal\Tests\system\Functional\Module | core/ |
Attempts enabling a module that fails hook_requirements('install'). | ||||
| HtaccessTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests .htaccess is working correctly. | ||||
| HtaccessTest | class | Drupal\KernelTests\Core\File | core/ |
Tests .htaccess file saving. | ||||
| HtaccessWriter | class | Drupal\Core\File | core/ |
Provides functions to manage Apache .htaccess files. | 1 | 2 | ||
| HtaccessWriterInterface | interface | Drupal\Core\File | core/ |
Interface for managing Apache .htaccess files. | 1 | |||
| Html | class | Drupal\Component\Utility | core/ |
Provides DOMDocument helpers for parsing and serializing HTML strings. | 219 | |||
| Html | class | Drupal\Core\Render\Element | core/ |
Provides a render element for an entire HTML page: <html> plus its children. | ||||
| HtmlAttributesTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests attributes inserted in the 'html' and 'body' elements on the page. | ||||
| HtmlCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery html() method. | 7 | |||
| HtmlEntityFormController | class | Drupal\Core\Entity | core/ |
Wrapping controller for entity forms that serve as the main page body. | 2 | |||
| HtmlEscapedText | class | Drupal\Component\Render | core/ |
Escapes HTML syntax characters to HTML entities for display in markup. | 2 | |||
| HtmlEscapedTextTest | class | Drupal\Tests\Component\Render | core/ |
Tests the HtmlEscapedText class. | ||||
| HtmlFormController | class | Drupal\Core\Controller | core/ |
Wrapping controller for forms that serve as the main page body. | 2 | |||
| HtmlList | class | Drupal\views\Plugin\views\style | core/ |
Style plugin to render each item in an ordered or unordered list. | ||||
| HtmlOutputLogger | final class | Drupal\TestTools\Extension\HtmlLogging | core/ |
Drupal's extension for providing HTML output results for functional tests. | 1 | |||
| 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 |
Pagination
- Previous page
- Page 97
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.