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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 10 | |||
| HttpResponseDebugCacheabilityHeadersTest | class | Drupal\KernelTests\Core\EventSubscriber | core/ |
Tests that debug cacheability header lines do not exceed Apache limit. | ||||
| 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 | ||
| IconDefinitionInvalidDataException | class | Drupal\Core\Theme\Icon\Exception | core/ |
Raised when icon data is invalid. | 2 | |||
| IconDefinitionTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Theme\Icon\IconDefinition. | ||||
| IconExtractor | class | Drupal\Core\Theme\Icon\Attribute | core/ |
The icon_extractor attribute. | 7 | |||
| IconExtractorBase | abstract class | Drupal\Core\Theme\Icon | core/ |
Base class for icon extractor plugins. | 2 | 1 | ||
| IconExtractorInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon_extractor plugins. | 2 | |||
| IconExtractorPluginManager | class | Drupal\Core\Theme\Icon | core/ |
IconExtractor plugin manager. | 2 | 2 | ||
| IconExtractorSettingsForm | class | Drupal\Core\Theme\Icon | core/ |
Handle icon extractor settings form conversion from YAML to Drupal Form API. | 1 | |||
| IconExtractorSettingsFormTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Theme\Icon\IconExtractorSettingsForm. | ||||
| IconExtractorTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Theme\Icon\Attribute\IconExtractor. | ||||
| IconExtractorWithFinder | abstract class | Drupal\Core\Theme\Icon | core/ |
Base class for icon_extractor plugins. | 4 | 4 | ||
| IconExtractorWithFinderInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon_extractor plugins. | 1 | |||
| IconFinder | class | Drupal\Core\Theme\Icon | core/ |
Icon finder to discover files under specific paths or URLs. | 5 | |||
| IconFinderInterface | interface | Drupal\Core\Theme\Icon | core/ |
Interface for icon finder. | 1 | |||
| IconFinderTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Theme\Icon\IconFinder. | ||||
| IconMimeTypes | final class | Drupal\file | core/ |
A utility class for working with MIME types. | 1 | |||
| IconPackConfigErrorException | class | Drupal\Core\Theme\Icon\Exception | core/ |
Raised when we have an icon pack error. | 6 | |||
| IconPackExtractorForm | class | Drupal\Core\Theme\Icon | core/ |
The icon pack extractor form plugin. | 6 | |||
| IconPackExtractorFormTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Theme\Icon\IconPackExtractorForm. | ||||
| IconPackManager | class | Drupal\Core\Theme\Icon\Plugin | core/ |
Defines an icon pack plugin manager to deal with icons. | 2 | 2 | ||
| IconPackManagerInterface | interface | Drupal\Core\Theme\Icon\Plugin | core/ |
Interface for icon pack manager. | 1 | 2 | ||
| IconPackManagerKernelTest | class | Drupal\KernelTests\Core\Theme\Icon | core/ |
Tests values are from test module icon_test. | ||||
| IconPackManagerTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Theme\Icon\Plugin\IconPackManager. | ||||
| IconsTwigExtension | final class | Drupal\Core\Template | core/ |
Twig extension for icon. | 1 | |||
| IconsTwigExtensionTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Template\IconsTwigExtension. | ||||
| IconTest | class | Drupal\Tests\Core\Theme\Icon | core/ |
Tests Drupal\Core\Render\Element\Icon. | ||||
| IconTestTrait | trait | Drupal\Tests\Core\Theme\Icon | core/ |
Provides methods to generate icons for tests. | 3 | |||
| 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. |
Pagination
- Previous page
- Page 98
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.