Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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\Core\Render\Element | core/ |
Provides a render element for an entire HTML page: <html> plus its children. | ||||
| Html | class | Drupal\Component\Utility | core/ |
Provides DOMDocument helpers for parsing and serializing HTML strings. | 195 | |||
| 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. | 1 | |||
| 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 | 14 | ||
| 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. | 25 | |||
| HTMLRestrictionsTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\HTMLRestrictions[[api-linebreak]] @group ckeditor5 | ||||
| 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/ |
@coversDefaultClass \Drupal\Core\Render\Element\HtmlTag[[api-linebreak]] @group Render | ||||
| 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\Functional\Mail | core/ |
Tests for \Drupal\Core\Mail\MailFormatHelper::htmlToText(). | ||||
| HtRouterTest | class | Drupal\BuildTests\Framework\Tests | core/ |
@coversDefaultClass \Drupal\BuildTests\Framework\BuildTestBase[[api-linebreak]] @group Build @requires extension pdo_sqlite | ||||
| 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/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\HttpExceptionNormalizer[[api-linebreak]] @group jsonapi | ||||
| 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. | 4 | 1 | ||
| 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\content_translation\Plugin\migrate\source | core/ |
Gets an i18n translation from the source database. | 4 | |||
| IconBuilderInterface | interface | Drupal\Core\Layout\Icon | core/ |
Provides an interface for building layout icons. | 1 | |||
| IconBuilderTest | class | Drupal\KernelTests\Core\Layout | core/ |
@coversDefaultClass \Drupal\Core\Layout\Icon\SvgIconBuilder[[api-linebreak]] @group Layout | ||||
| IdAuditor | class | Drupal\migrate\Audit | core/ |
Audits migrations that create content entities in the destination system. | 5 | |||
| IdConflictForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade Id Conflict form. | 1 | |||
| IdConflictTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d6 | core/ |
Tests Drupal 6 Id Conflict page. | ||||
| IdConflictTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d7 | core/ |
Tests Drupal 7 Id Conflict page. | ||||
| IdentifierFieldSchemaTypeUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path for updating the stored type of identifier fields. | ||||
| IdMapTableNoDummyTest | class | Drupal\Tests\migrate_drupal\Kernel | core/ |
Test that no dummy migrate_map tables are created. | ||||
| IFrameMarkup | class | Drupal\media | core/ |
Defines an object that wraps oEmbed markup for use in an iFrame. | 1 | |||
| IFrameUrlHelper | class | Drupal\media | core/ |
Providers helper functions for displaying oEmbed resources in an iFrame. | 5 | 2 | ||
| IFrameUrlHelperTest | class | Drupal\Tests\media\Unit | core/ |
@coversDefaultClass \Drupal\media\IFrameUrlHelper[[api-linebreak]] | ||||
| Ignore | class | Drupal\Core\Config\Schema | core/ |
Configuration property to ignore. | 2 | 1 |
Pagination
- Previous page
- Page 83
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.