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 |
---|---|---|---|---|---|---|---|---|
EntityViewsDataInterface | interface | Drupal\views | core/ |
Provides an interface to integrate an entity type with views. | 1 | |||
EntityWithPluginCollectionInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an object using a plugin collection. | 9 | 11 | ||
EntityWorkspaceConflictConstraint | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Validation constraint for an entity being edited in multiple workspaces. | 1 | |||
EntityWorkspaceConflictConstraintValidator | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Validates the EntityWorkspaceConflict constraint. | ||||
Entry | final class | OpenTelemetry\API\Baggage | vendor/ |
1 | ||||
EntryPoint | class | Drupal\jsonapi\Controller | core/ |
Controller for the API entry point. | 1 | |||
Enum | final class | Doctrine\Common\Annotations\Annotation | vendor/ |
Annotation that can be used to signal to the parser to check the available values during the parsing process. | 2 | |||
Enum | class | Google\Protobuf | vendor/ |
Enum type definition. | ||||
EnumBuilderContext | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
EnumCase | class | PhpParser\Builder | vendor/ |
|||||
EnumCase | class | PhpParser\Node\Stmt | vendor/ |
|||||
EnumCasesFunction | class | Twig\Node\Expression\FunctionNode | vendor/ |
1 | ||||
EnumCaseSpacingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
EnumConstraint | class | JsonSchema\Constraints | vendor/ |
The EnumConstraint Constraints, validates an element against a given set of possibilities | ||||
EnumDescriptor | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
EnumDescriptor | class | Google\Protobuf | vendor/ |
|||||
EnumDescriptorProto | class | Google\Protobuf\Internal | vendor/ |
Describes an enum type. | ||||
Enumerator | final class | SebastianBergmann\ObjectEnumerator | vendor/ |
2 | ||||
EnumFunction | class | Twig\Node\Expression\FunctionNode | vendor/ |
1 | ||||
EnumInfo | class | VariableAnalysis\Lib | vendor/ |
Holds details of an enum. | 1 | |||
EnumOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.EnumOptions</code> | ||||
EnumRequirement | final class | Symfony\Component\Routing\Requirement | vendor/ |
|||||
EnumReservedRange | class | Google\Protobuf\Internal\EnumDescriptorProto | vendor/ |
Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap. Note that this is distinct from DescriptorProto.ReservedRange in that it is inclusive such that it can appropriately… | ||||
EnumStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents an enumeration of values. | 2 | |||
EnumTokenEmulator | final class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
EnumValue | class | Google\Protobuf | vendor/ |
Enum value definition. | ||||
EnumValueDescriptor | class | Google\Protobuf | vendor/ |
2 | ||||
EnumValueDescriptorProto | class | Google\Protobuf\Internal | vendor/ |
Describes a value within an enum. | ||||
EnumValueOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.EnumValueOptions</code> | ||||
Enum_ | class | PhpParser\Node\Stmt | vendor/ |
3 | ||||
Enum_ | class | PhpParser\Builder | vendor/ |
|||||
EnvConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
|||||
Envelope | class | Symfony\Component\Mailer | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 9 | ||
EnvelopeListener | class | Symfony\Component\Mailer\EventListener | vendor/ |
Manipulates the Envelope of a Message. | ||||
Environment | final class | OpenTelemetry\SDK\Resource\Detectors | vendor/ |
|||||
Environment | final class | PhpTuf\ComposerStager\Internal\Environment\Service | vendor/ |
@package Environment | 2 | |||
Environment | class | Twig | vendor/ |
Stores the Twig configuration and renders templates. | 1 | 28 | ||
Environment | class | Drupal\Component\Utility | core/ |
Provides PHP environment helper methods. | 12 | |||
EnvironmentCleaner | class | Drupal\Core\Test | core/ |
Helper class for cleaning test environments. | ||||
EnvironmentCleanerInterface | interface | Drupal\Core\Test | core/ |
Defines an interface for cleaning up test results and fixtures. | 1 | |||
EnvironmentInterface | interface | PhpTuf\ComposerStager\API\Environment\Service | vendor/ |
Provides features for interacting with the PHP environment. | 1 | 24 | ||
EnvironmentResolver | class | OpenTelemetry\SDK\Common\Configuration\Resolver | vendor/ |
@internal | ||||
EnvironmentSupportValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that the environment has support for Package Manager. | ||||
EnvNotFoundException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
This exception is thrown when an environment variable is not found. | 2 | |||
EnvParameterException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
This exception wraps exceptions whose messages contain a reference to an env parameter. | 3 | |||
EnvPlaceholderParameterBag | class | Symfony\Component\DependencyInjection\ParameterBag | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | 6 | ||
EnvVarLoaderInterface | interface | Symfony\Component\DependencyInjection | vendor/ |
EnvVarLoaderInterface objects return key/value pairs that are added to the list of available env vars. | 1 | |||
EnvVarProcessor | class | Symfony\Component\DependencyInjection | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
EnvVarProcessorInterface | interface | Symfony\Component\DependencyInjection | vendor/ |
The EnvVarProcessorInterface is implemented by objects that manage environment-like variables. | 1 | 1 | ||
Equal | class | PhpParser\Node\Expr\BinaryOp | vendor/ |