Classes, traits, and interfaces - 9.5.x - drupal

Primary tabs

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
InstallerLanguageDirectionTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerLanguageDirectionTest.php Verifies that the early installer uses the correct language direction.
InstallerLanguagePageTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerLanguagePageTest.php Verifies that the installer language list combines local and remote languages.
InstallerLanguageTest class Drupal\KernelTests\Core\Installer core/tests/Drupal/KernelTests/Core/Installer/InstallerLanguageTest.php Tests for installer language support.
InstallerModuleExtensionList class Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerModuleExtensionList.php Overrides the module extension list to have a static cache.
InstallerNonDefaultDatabaseDriverTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerNonDefaultDatabaseDriverTest.php Tests the interactive installer.
InstallerNonEnglishProfileWithoutLocaleModuleTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerNonEnglishProfileWithoutLocaleModuleTest.php Tests installing a profile with non-English language and no locale module.
InstallerObjectTest class Drupal\Tests\Core\Database core/tests/Drupal/Tests/Core/Database/InstallerObjectTest.php Tests the db_installer_object() function that is used during installation.
InstallerPerformanceTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php Tests the interactive installer.
InstallerPostInstallTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerPostInstallTest.php Tests re-visiting the installer after a successful installation.
InstallerProfileRequirementsTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php Tests that an install profile can implement hook_requirements().
InstallerRedirectTrait trait Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerRedirectTrait.php Provides methods for checking if Drupal is already installed. 3
InstallerRedirectTraitTest class Drupal\KernelTests\Core\Installer core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php @coversDefaultClass \Drupal\Core\Installer\InstallerRedirectTrait[[api-linebreak]]
InstallerRouteBuilder class Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerRouteBuilder.php Manages the router in the installer.
InstallerRouteProviderLazyBuilder class Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerRouteProviderLazyBuilder.php A Route Provider front-end for use during the installer.
InstallerRouterTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerRouterTest.php Tests router rebuilding during installation.
InstallerServiceProvider class Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerServiceProvider.php Service provider for the early installer environment.
InstallerSiteConfigProfileTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerSiteConfigProfileTest.php Verifies that the installer uses the profile's site configuration.
InstallerSkipPermissionHardeningTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerSkipPermissionHardeningTest.php Verifies that the installer skipped permission hardening.
InstallerTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php Tests the interactive installer.
InstallerTestBase abstract class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php Base class for testing the interactive installer. 37 3
InstallerThemeEngineExtensionList class Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerThemeEngineExtensionList.php Overrides the theme engine extension list to have a static cache.
InstallerThemeExtensionList class Drupal\Core\Installer core/lib/Drupal/Core/Installer/InstallerThemeExtensionList.php Overrides the theme extension list to have a static cache.
InstallerThemesBlocksProfileTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerThemesBlocksProfileTest.php Verifies that the installer does not generate theme blocks.
InstallerTranslationExistingFileTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationExistingFileTest.php Tests translation files for multiple languages get imported during install.
InstallerTranslationMultipleLanguageForeignTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageForeignTest.php Tests translation files for multiple languages get imported during install. 1
InstallerTranslationMultipleLanguageKeepEnglishTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageKeepEnglishTest.php Tests that keeping English in a foreign language install works.
InstallerTranslationMultipleLanguageNonInteractiveTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageNonInteractiveTest.php Tests translation files for multiple languages get imported during install.
InstallerTranslationMultipleLanguageTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationMultipleLanguageTest.php Tests translation files for multiple languages get imported during install. 1
InstallerTranslationQueryTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationQueryTest.php Installs Drupal in German and checks resulting site.
InstallerTranslationTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php Installs Drupal in German and checks resulting site.
InstallerWithTablePrefixArrayTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallerWithTablePrefixArrayTest.php Tests the interactive installer with deprecated table prefix array.
InstallHelper class Drupal\demo_umami_content core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php Defines a helper class for importing default content. 1
InstallProfileDependenciesTest class Drupal\FunctionalTests\Installer core/tests/Drupal/FunctionalTests/Installer/InstallProfileDependenciesTest.php Tests that an install profile can require modules.
InstallStorage class Drupal\Core\Config core/lib/Drupal/Core/Config/InstallStorage.php Storage used by the Drupal installer. 2 17
InstallTasksTest class Drupal\Tests\mysql\Unit core/modules/mysql/tests/src/Unit/InstallTasksTest.php Tests the MySQL install tasks.
InstallTest class Drupal\Tests\system\Functional\Module core/modules/system/tests/src/Functional/Module/InstallTest.php Tests the installation of modules.
InstallTest class Drupal\BuildTests\TestSiteApplication core/tests/Drupal/BuildTests/TestSiteApplication/InstallTest.php @group Build @group TestSiteApplication
InstallTranslationFilePatternTest class Drupal\Tests\system\Kernel\Installer core/modules/system/tests/src/Kernel/Installer/InstallTranslationFilePatternTest.php Tests for installer language support.
InstallUninstallTest class Drupal\Tests\system\Functional\Module core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Install/uninstall core module and confirm table creation/deletion.
IntefaceWithConstants interface Drupal\Tests\Component\Annotation\Doctrine\Fixtures core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/IntefaceWithConstants.php 1
IntegerData class Drupal\Core\TypedData\Plugin\DataType core/lib/Drupal/Core/TypedData/Plugin/DataType/IntegerData.php The integer data type. 2 6 1
IntegerFormatter class Drupal\Core\Field\Plugin\Field\FieldFormatter core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/IntegerFormatter.php Plugin implementation of the 'number_integer' formatter.
IntegerInterface interface Drupal\Core\TypedData\Type core/lib/Drupal/Core/TypedData/Type/IntegerInterface.php Interface for integer numbers. 1 8
IntegerItem class Drupal\Core\Field\Plugin\Field\FieldType core/lib/Drupal/Core/Field/Plugin/Field/FieldType/IntegerItem.php Defines the 'integer' field type. 1 2
IntegrationTest class Drupal\Tests\aggregator\Kernel\Views core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php Tests basic integration of views data from the aggregator module.
IntegrationTest class Drupal\Tests\statistics\Functional\Views core/modules/statistics/tests/src/Functional/Views/IntegrationTest.php Tests basic integration of views data from the statistics module.
IntegrityConstraintViolationException class Drupal\Core\Database core/lib/Drupal/Core/Database/IntegrityConstraintViolationException.php Exception thrown if a query would violate an integrity constraint. 9
Internal class Drupal\ckeditor\Plugin\CKEditorPlugin core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php Defines the "internal" plugin (i.e. core plugins part of our CKEditor build).
InternalEntitiesTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php Makes assertions about the JSON:API behavior for internal entities.
InternalPropertyTestFieldItem class Drupal\entity_test\Plugin\Field\FieldType core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/InternalPropertyTestFieldItem.php Defines the 'Internal Property' entity test field type.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.