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 |
---|---|---|---|---|---|---|---|---|
Ime | class | WebDriver | vendor/ |
WebDriver\Ime class | ||||
IMEEngineActivationFailed | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\IMEEngineActivationFailed class | ||||
IMENotAvailable | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\IMENotAvailable class | ||||
ImgStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
@author Grégoire Pineau <lyrixx@lyrixx.info> | ||||
ImmediateStalenessHandler | final class | OpenTelemetry\SDK\Metrics\StalenessHandler | vendor/ |
@internal | ||||
ImmediateStalenessHandlerFactory | final class | OpenTelemetry\SDK\Metrics\StalenessHandler | vendor/ |
|||||
ImmutableConfig | class | Drupal\Core\Config | core/ |
Defines the immutable configuration object. | 2 | |||
ImmutableConfigException | class | Drupal\Core\Config | core/ |
Exception throw when an immutable config object is altered. | ||||
ImmutableEventDispatcher | class | Symfony\Component\EventDispatcher | vendor/ |
A read-only proxy for an event dispatcher. | ||||
ImmutablePathList | final class | Drupal\package_manager | core/ |
Defines a path list that cannot be changed. | 3 | |||
ImmutablePropertiesConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if config entity properties have been changed. | ||||
ImmutablePropertiesConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the ImmutableProperties constraint. | ||||
ImmutableSpan | final class | OpenTelemetry\SDK\Trace | vendor/ |
@psalm-immutable | ||||
ImplementationOfDeprecatedInterfaceRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<Class_> | ||||
ImplementsFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
ImplementsTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
3 | ||||
Implements_ | class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {implements tag in a Docblock. | 1 | 1 | ||
ImplicitContextKeyedInterface | interface | OpenTelemetry\Context | vendor/ |
Represents a value that can be stored within {Allows storing themselves without exposing a { | 3 | 3 | ||
ImplicitlyIgnoredAnnotationNames | final class | Doctrine\Common\Annotations | vendor/ |
A list of annotations that are implicitly ignored during the parsing process. | ||||
ImportableEntityStorageInterface | interface | Drupal\Core\Config\Entity | core/ |
Provides an interface for responding to configuration imports. | 1 | 1 | ||
ImportAwareInterface | interface | Drupal\migrate\Event | core/ |
Interface for plugins that react to pre- or post-import events. | 1 | |||
ImportConfigurator | class | Symfony\Component\Routing\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ImportDeclaration | class | Peast\Syntax\Node | vendor/ |
A node that represents in import declaration. For example: import a from "mod" | ||||
ImportDefaultSpecifier | class | Peast\Syntax\Node | vendor/ |
A node that represents a namespace import specifier. For example "* as test" in: import * as test from "test.js". | ||||
Importer | final class | Drupal\Core\DefaultContent | core/ |
A service for handling import of content. | 1 | |||
ImportException | final class | Drupal\Core\DefaultContent | core/ |
Exception thrown when there is an error importing content. | ||||
ImportExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents an import expression (dynamic import). | ||||
ImportForm | class | Drupal\locale\Form | core/ |
Form constructor for the translation import screen. | 1 | |||
ImportNamespaceSpecifier | class | Peast\Syntax\Node | vendor/ |
A node that represents a default import specifier. For example "test" in: import test from "test.js". | ||||
ImportNode | class | Twig\Node | vendor/ |
Represents an import node. | 3 | |||
ImportSpecifier | class | Peast\Syntax\Node | vendor/ |
A node that represents a specifier in an import declaration. For example "{a}" in: import {a} from "test" | ||||
ImportStatementSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Files | vendor/ |
|||||
ImportStorageTransformer | final class | Drupal\Core\Config | core/ |
The import storage transformer helps to use the configuration management api. | 2 | |||
ImportTokenParser | final class | Twig\TokenParser | vendor/ |
Imports macros. | 1 | |||
InaccessibleMenuLink | class | Drupal\Core\Menu | core/ |
A menu link plugin for wrapping another menu link, in sensitive situations. | ||||
InArrayToken | class | Prophecy\Argument\Token | vendor/ |
Check if values is in array | ||||
InBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
InboundPathProcessorInterface | interface | Drupal\Core\PathProcessor | core/ |
Defines an interface for classes that process the inbound path. | 9 | 9 | ||
IncludedData | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents the included member of a JSON:API document. | 1 | 2 | ||
IncludeGroupFilterIterator | final class | PHPUnit\Runner\Filter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
IncludeNode | class | Twig\Node | vendor/ |
Represents an include node. | 1 | 3 | ||
IncludeOwnSystemSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Channels | vendor/ |
|||||
IncludeResolver | class | Drupal\jsonapi | core/ |
Resolves included resources for an entity or collection of entities. | 1 | 2 | ||
IncludeSystemSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Channels | vendor/ |
|||||
IncludeTokenParser | class | Twig\TokenParser | vendor/ |
Includes a template. | 1 | 1 | ||
Include_ | class | PhpParser\Node\Expr | vendor/ |
1 | ||||
IncludingFileSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\Files | vendor/ |
|||||
IncompatibleComponentSchema | class | Drupal\Core\Render\Component\Exception | core/ |
Custom exception for incompatible schemas. | 2 | |||
IncompatibleReturnValueException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Incomplete | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable |