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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 26 | |||
| HTMLRestrictionsTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\HTMLRestrictions[[api-linebreak]] @group ckeditor5 | ||||
| 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/ |
@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\Unit\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. | 5 | 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 | ||||
| IconMimeTypes | final class | Drupal\file | core/ |
A utility class for working with MIME types. | 1 | |||
| IdAuditor | class | Drupal\migrate\Audit | core/ |
Audits migrations that create content entities in the destination system. | 3 | |||
| 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. | ||||
| 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 | ||
| IgnoredWorkspaceHandler | class | Drupal\workspaces\Entity\Handler | core/ |
Defines a handler for entity types that are ignored by workspaces. | 5 | |||
| IHaveRuntimeContexts | class | Drupal\layout_builder_test\ContextProvider | core/ |
Defines a class for a fake context provider. | 2 | |||
| IHaveRuntimeContexts | class | Drupal\layout_builder_test\Plugin\Block | core/ |
Defines a class for a context-aware block. | ||||
| Image | class | Drupal\media\Plugin\media\Source | core/ |
Image entity media source. | 3 | |||
| Image | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Image plugin. | 1 | |||
| Image | class | Drupal\Core\Image | core/ |
Defines an image object to represent an image file. | 1 | |||
| Image | class | Drupal\Component\Utility | core/ |
Provides helpers to operate on images. | 2 | |||
| ImageAdminStylesTest | class | Drupal\Tests\image\FunctionalJavascript | core/ |
Tests creation, deletion, and editing of image styles and effects. | ||||
| ImageAdminStylesTest | class | Drupal\Tests\image\Functional | core/ |
Tests creation, deletion, and editing of image styles and effects. | ||||
| ImageButton | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a submit button with an image. | ||||
| ImageCacheActions | class | Drupal\image\Plugin\migrate\process\d6 | core/ |
Defines the image cache actions migrate process plugin. | ||||
| ImageCachePreset | class | Drupal\image\Plugin\migrate\source\d6 | core/ |
Drupal 6 imagecache presets source from database. | ||||
| ImageCachePresetTest | class | Drupal\Tests\image\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the d6_imagecache_presets source plugin. | ||||
| ImageDimensionsTest | class | Drupal\Tests\image\Functional | core/ |
Tests that images have correct dimensions when styled. | ||||
| ImageEffect | class | Drupal\image\Attribute | core/ |
Defines an ImageEffect attribute for plugin discovery. | 11 | |||
| ImageEffect | class | Drupal\image\Annotation | core/ |
Defines an image effect annotation object. | ||||
| ImageEffectAddForm | class | Drupal\image\Form | core/ |
Provides an add form for image effects. | 1 | |||
| ImageEffectBase | abstract class | Drupal\image | core/ |
Provides a base class for image effects. | 4 | 4 | ||
| ImageEffectDeleteForm | class | Drupal\image\Form | core/ |
Form for deleting an image effect. | 1 |
Pagination
- Previous page
- Page 89
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.