Classes, traits, and interfaces - 10.3.x - 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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| HelpTopicTwig | class | Drupal\help_topics | core/ |
Represents a help topic plugin whose definition comes from a Twig file. | ||||
| HelpTopicTwigLoader | class | Drupal\help_topics | core/ |
Loads help topic Twig files from the filesystem. | ||||
| HelpTopicTwigLoader | class | Drupal\help | core/ |
Loads help topic Twig files from the filesystem. | 1 | 2 | 2 | |
| HelpTopicTwigLoaderTest | class | Drupal\Tests\help\Unit | core/ |
Unit test for the HelpTopicTwigLoader class. | ||||
| HelpTopicTwigTest | class | Drupal\Tests\help\Unit | core/ |
Unit test for the HelpTopicTwig class. | ||||
| HelpTwigExtension | class | Drupal\help | core/ |
Defines and registers Drupal Twig extensions for rendering help topics. | 1 | 1 | 2 | |
| HelpTwigExtension | class | Drupal\help_topics | core/ |
Defines and registers Drupal Twig extensions for rendering help topics. | ||||
| Hidden | class | Drupal\Core\Render\Element | core/ |
Provides a form element for an HTML 'hidden' input element. | 1 | |||
| HiddenFieldSelector | class | Drupal\Tests | core/ |
Extends PartialNamedSelector to allow retrieval of hidden fields. | ||||
| HiddenTaxonomyTermReferenceFieldWizardTest | class | Drupal\Tests\node\Functional\Views\Wizard | core/ |
Tests node wizard and content type with hidden Taxonomy Term Reference field. | ||||
| HiddenTestItem | class | Drupal\field_test\Plugin\Field\FieldType | core/ |
Defines the 'hidden_test' entity field item. | ||||
| HighestIdInterface | interface | Drupal\migrate\Audit | core/ |
Defines an interface for destination and ID maps which track a highest ID. | 2 | 2 | ||
| HighlightCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for highlighting a certain new piece of html. | 1 | |||
| HighPriorityThemeNegotiator | class | Drupal\theme_test\Theme | core/ |
Implements a test theme negotiator which was configured with a high priority. | 2 | |||
| HighWaterNotJoinableTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the high water handling. | ||||
| HighWaterTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests migration high water property. | ||||
| HighWaterTest | class | Drupal\migrate_high_water_test\Plugin\migrate\source | core/ |
Source plugin for migration high water tests. | ||||
| HistoryController | class | Drupal\history\Controller | core/ |
Returns responses for History module routes. | ||||
| HistoryRenderCallback | class | Drupal\history | core/ |
Render callback object. | ||||
| HistoryTest | class | Drupal\Tests\history\Functional | core/ |
Tests the History endpoints. | ||||
| HistoryTimestampTest | class | Drupal\Tests\history\Kernel\Views | core/ |
Tests the history timestamp handlers. | ||||
| HistoryUserTimestamp | class | Drupal\history\Plugin\views\field | core/ |
Field handler to display the marker for new content. | ||||
| HistoryUserTimestamp | class | Drupal\history\Plugin\views\filter | core/ |
Filter for new content. | ||||
| HoldTestSubscriber | class | Drupal\hold_test\EventSubscriber | core/ |
Response subscriber to test hold. | 1 | 2 | ||
| Hook | class | Drupal\Core\Hook\Attribute | core/ |
This class will not have an effect until Drupal 11.1.0. | ||||
| HookDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Provides a hook-based plugin discovery class. | 1 | |||
| HookDiscoveryTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
@coversDefaultClass \Drupal\Core\Plugin\Discovery\HookDiscovery[[api-linebreak]] @group Plugin | ||||
| HookHelpSection | class | Drupal\help\Plugin\HelpSection | core/ |
Provides the module topics list section for the help page. | ||||
| 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. | 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. | 201 | |||
| 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. | 11 | |||
| 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. | ||||
| HtmlOutputPrinter | class | Drupal\Tests\Listeners | core/ |
Defines a class for providing html output results for functional tests. | ||||
| HtmlOutputPrinterTrait | trait | Drupal\Tests\Listeners | core/ |
Defines a class for providing html output results for functional tests. | ||||
| 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 | 16 | ||
| 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 |
Pagination
- Previous page
- Page 88
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.