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 |
|---|---|---|---|---|---|---|---|---|
| InstallerRedirectTraitTest | class | Drupal\KernelTests\Core\Installer | core/ |
Tests Drupal\Core\Installer\InstallerRedirectTrait. | ||||
| InstallerRouteBuilder | in drupal:11.4.0 and is removed from drupal:12.0.0. No replacement provided. |
class | Drupal\Core\Installer | core/ |
Manages the router in the installer. | |||
| InstallerRouteProviderLazyBuilder | class | Drupal\Core\Installer | core/ |
A Route Provider front-end for use during the installer. | ||||
| InstallerRouterTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests router rebuilding during installation. | ||||
| InstallerServiceProvider | class | Drupal\Core\Installer | core/ |
Service provider for the early installer environment. | ||||
| InstallerSiteConfigProfileTest | class | Drupal\FunctionalTests\Installer | core/ |
Verifies that the installer uses the profile's site configuration. | ||||
| InstallerSkipPermissionHardeningTest | class | Drupal\FunctionalTests\Installer | core/ |
Verifies that the installer skipped permission hardening. | ||||
| InstallerTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests the interactive installer. | ||||
| InstallerTestBase | abstract class | Drupal\FunctionalTests\Installer | core/ |
Base class for testing the interactive installer. | 47 | 5 | ||
| InstallerThemeEngineExtensionList | class | Drupal\Core\Installer | core/ |
Overrides the theme engine extension list to have a static cache. | ||||
| InstallerThemeExtensionList | in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Extension\ThemeExtensionList instead. |
class | Drupal\Core\Installer | core/ |
Backward-compatibility wrapper for the installer theme extension list. | |||
| InstallerThemesBlocksProfileTest | class | Drupal\FunctionalTests\Installer | core/ |
Verifies that the installer does not generate theme blocks. | ||||
| InstallerTranslationDownloadTest | class | Drupal\KernelTests\Core\Installer | core/ |
Tests that profile translations are downloaded by the installer. | ||||
| InstallerTranslationExistingFileTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests translation files for multiple languages get imported during install. | ||||
| InstallerTranslationMultipleLanguageForeignTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests translation files for multiple languages get imported during install. | 1 | |||
| InstallerTranslationMultipleLanguageKeepEnglishTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests that keeping English in a foreign language install works. | ||||
| InstallerTranslationMultipleLanguageNonInteractiveTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests translation files for multiple languages get imported during install. | 1 | |||
| InstallerTranslationMultipleLanguageTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests translation files for multiple languages get imported during install. | 1 | |||
| InstallerTranslationNonStandardFilenamesTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests non-standard named translation files get imported during install. | ||||
| InstallerTranslationQueryTest | class | Drupal\FunctionalTests\Installer | core/ |
Installs Drupal in German and checks resulting site. | ||||
| InstallerTranslationTest | class | Drupal\FunctionalTests\Installer | core/ |
Installs Drupal in German and checks resulting site. | ||||
| InstallHelper | class | Drupal\demo_umami_content | core/ |
Defines a helper class for importing default content. | 2 | |||
| InstallProfileDependenciesTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests that an install profile can require modules. | ||||
| InstallProfileUninstallTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests that an install profile can be uninstalled. | ||||
| InstallProfileUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures install profile can only be uninstalled if the modules are available. | 2 | |||
| InstallRequirementsInterface | interface | Drupal\Core\Extension | core/ |
Provides method for checking requirements during install time. | 11 | 12 | ||
| InstallRequirementsTest | class | Drupal\KernelTests\Core\Installer | core/ |
Tests for install requirements. | ||||
| InstallStorage | class | Drupal\Core\Config | core/ |
Storage used by the Drupal installer. | 2 | 19 | ||
| InstallTasksTest | class | Drupal\Tests\mysql\Unit | core/ |
Tests the MySQL install tasks. | ||||
| InstallTest | class | Drupal\Tests\system\Kernel\Module | core/ |
Tests the installation of modules. | ||||
| InstallTest | class | Drupal\BuildTests\TestSiteApplication | core/ |
Tests. | ||||
| InstallTranslationFilePatternTest | class | Drupal\Tests\system\Kernel\Installer | core/ |
Tests for installer language support. | ||||
| InstantQueueRunner | class | Drupal\Core\Queue | core/ |
Provides an instant queue runner that processes items in kernel.destruct. | 2 | |||
| InstantQueueRunnerInterface | interface | Drupal\Core\Queue | core/ |
Provides an interface for adding queues to be run instantly. | 1 | 1 | ||
| InstantQueueRunnerTest | class | Drupal\KernelTests\Core\Queue | core/ |
Queues and unqueues a set of items to check the basic queue functionality. | ||||
| IntefaceWithConstants | interface | Drupal\Tests\Component\Annotation\Doctrine\Fixtures | core/ |
1 | ||||
| IntegerData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The integer data type. | 2 | 6 | 1 | |
| IntegerFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'number_integer' formatter. | ||||
| IntegerInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for integer numbers. | 1 | 8 | ||
| IntegerItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'integer' field type. | 1 | 2 | ||
| IntegrityConstraintViolationException | class | Drupal\Core\Database | core/ |
Exception thrown if a query would violate an integrity constraint. | 10 | |||
| InternalEntitiesTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Makes assertions about the JSON:API behavior for internal entities. | ||||
| InternalPropertyTestFieldItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'Internal Property' entity test field type. | ||||
| InternalTypedDataTestTrait | trait | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Trait that provides mocked typed data objects. | ||||
| Interpolator | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Injects config values from an associative array into a string. | 3 | |||
| IntValue | class | Drupal\Core\Database\SchemaDefinition | core/ |
A class holding an int value. | 11 | |||
| InvalidatingCacheBackendInterface | interface | Drupal\Tests\Core\Cache | core/ |
Test interface for testing the cache tags validator. | ||||
| InvalidCharsetException | class | Drupal\mysqli\Driver\Database\mysqli | core/ |
This exception class signals an invalid charset is being used. | ||||
| InvalidComponentDataException | class | Drupal\Core\Render\Component\Exception | core/ |
Raised when a component is rendering with invalid data. | 2 | |||
| InvalidComponentException | class | Drupal\Core\Render\Component\Exception | core/ |
Custom exception for invalid components. | 9 |
Pagination
- Previous page
- Page 108
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.