Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
InstalledPackagesList | final class | Drupal\package_manager | core/ |
Defines a class to list installed Composer packages. | ||||
InstalledRepository | class | Composer\Repository | vendor/ |
Installed repository is a composite of all installed repo types. | 11 | |||
InstalledRepositoryInterface | interface | Composer\Repository | vendor/ |
Installable repository interface. | 2 | 13 | ||
InstalledVersions | class | Composer | vendor/ |
This class is copied in every Composer installed project and available to all | 6 | |||
InstalledVersions | class | Composer | vendor/ |
This class is copied in every Composer installed project and available to all | 6 | |||
Installer | class | Composer\Installers | vendor/ |
|||||
Installer | class | Composer | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author Beau Simensen <beau@dflydev.com> @author Konstantin Kudryashov <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de> | 7 | |||
InstallerAccessPolicy | final class | Drupal\Core\Installer | core/ |
Grants user 1 an all access pass during install. | ||||
InstallerEvent | class | Composer\Installer | vendor/ |
1 | ||||
InstallerEvents | class | Composer\Installer | vendor/ |
2 | ||||
InstallerException | class | Drupal\Core\Installer\Exception | core/ |
Base class for exceptions thrown by installer. | 2 | 1 | ||
InstallerInterface | interface | Composer\Installer | vendor/ |
Interface for the package installation manager. | 4 | 1 | ||
InstallerKernel | class | Drupal\Core\Installer | core/ |
Extend DrupalKernel to handle force some kernel behaviors. | 19 | |||
InstallerModuleExtensionList | class | Drupal\Core\Installer | core/ |
Overrides the module extension list to have a static cache. | ||||
InstallerRedirectTrait | trait | Drupal\Core\Installer | core/ |
Provides methods for checking if Drupal is already installed. | 2 | |||
InstallerRouteBuilder | 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. | ||||
InstallerServiceProvider | class | Drupal\Core\Installer | core/ |
Service provider for the early installer environment. | ||||
InstallerThemeEngineExtensionList | class | Drupal\Core\Installer | core/ |
Overrides the theme engine extension list to have a static cache. | ||||
InstallerThemeExtensionList | class | Drupal\Core\Installer | core/ |
Overrides the theme extension list to have a static cache. | ||||
InstallHelper | class | Drupal\demo_umami_content | core/ |
Defines a helper class for importing default content. | 2 | |||
InstallHooksSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Checks that hook_disable(), hook_enable(), hook_install(), hook_uninstall(), hook_requirements() and hook_schema() are not defined in the module file. | ||||
InstallOperation | class | Composer\DependencyResolver\Operation | vendor/ |
Solver install operation. | 9 | |||
InstallProfileUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures install profile can only be uninstalled if the modules are available. | ||||
InstallStorage | class | Drupal\Core\Config | core/ |
Storage used by the Drupal installer. | 1 | 3 | ||
InstallTSniff | class | DrupalPractice\Sniffs\FunctionDefinitions | vendor/ |
Checks that t() and st() are not used in hook_install() and hook_requirements(). | ||||
InstanceofConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
Instanceof_ | class | PhpParser\Node\Expr | vendor/ |
1 | ||||
InstantiationOfDeprecatedClassRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<New_> | ||||
Instantiator | final class | Symfony\Component\VarExporter | vendor/ |
A utility class to create objects without calling their constructor. | ||||
Instantiator | final class | Doctrine\Instantiator | vendor/ |
2 | ||||
InstantiatorInterface | interface | Doctrine\Instantiator | vendor/ |
Instantiator provides utility methods to build objects without invoking their constructors | 1 | |||
InstantiatorInterface | interface | Symfony\Component\DependencyInjection\LazyProxy\Instantiator | vendor/ |
Lazy proxy instantiator, capable of instantiating a proxy given a container, the service definitions and a callback that produces the real service instance. | 2 | 1 | ||
InstructionProcessor | interface | Masterminds\HTML5 | vendor/ |
Provide an processor to handle embedded instructions. | 1 | |||
Instrument | interface | OpenTelemetry\API\Metrics | vendor/ |
2 | ||||
Instrument | final class | OpenTelemetry\SDK\Metrics | vendor/ |
14 | ||||
Instrumentation | interface | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
1 | ||||
InstrumentationConfiguration | interface | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
1 | ||||
InstrumentationInterface | interface | OpenTelemetry\API\Instrumentation | vendor/ |
|||||
InstrumentationLibrary | class | Opentelemetry\Proto\Common\V1 | vendor/ |
InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version. InstrumentationLibrary is wire-compatible with InstrumentationScope for binary Protobuf format. This message is… | ||||
InstrumentationLibraryLogs | class | Opentelemetry\Proto\Logs\V1 | vendor/ |
A collection of Logs produced by an InstrumentationLibrary. InstrumentationLibraryLogs is wire-compatible with ScopeLogs for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022. | ||||
InstrumentationLibraryMetrics | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
A collection of Metrics produced by an InstrumentationLibrary. InstrumentationLibraryMetrics is wire-compatible with ScopeMetrics for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022. | ||||
InstrumentationLibrarySpans | class | Opentelemetry\Proto\Trace\V1 | vendor/ |
A collection of Spans produced by an InstrumentationLibrary. InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022. | ||||
InstrumentationScope | final class | OpenTelemetry\SDK\Common\Instrumentation | vendor/ |
Represents the instrumentation scope information associated with the Tracer or Meter | ||||
InstrumentationScope | class | Opentelemetry\Proto\Common\V1 | vendor/ |
InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version. | 3 | |||
InstrumentationScopeFactory | final class | OpenTelemetry\SDK\Common\Instrumentation | vendor/ |
4 | ||||
InstrumentationScopeFactoryInterface | interface | OpenTelemetry\SDK\Common\Instrumentation | vendor/ |
1 | 3 | |||
InstrumentationScopeInterface | interface | OpenTelemetry\SDK\Common\Instrumentation | vendor/ |
1 | 28 | |||
InstrumentationScopeNameCriteria | final class | OpenTelemetry\SDK\Metrics\View\SelectionCriteria | vendor/ |
|||||
InstrumentationScopeSchemaUrlCriteria | final class | OpenTelemetry\SDK\Metrics\View\SelectionCriteria | vendor/ |