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 |
---|---|---|---|---|---|---|---|---|
TwoColumnLayout | class | Drupal\layout_builder\Plugin\Layout | core/ |
Configurable two column layout plugin class. | 1 | |||
TxtFileLineLengthSniff | class | Drupal\Sniffs\Files | vendor/ |
\Drupal\Sniffs\Files\TxtFileLineLengthSniff. | ||||
Type | abstract class | SebastianBergmann\Type | vendor/ |
15 | 2 | |||
Type | class | Google\Protobuf | vendor/ |
A protocol buffer message type. | ||||
Type | class | Peast\Selector\Node\Part | vendor/ |
Selector part type class | ||||
Type | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
Type | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is of a specific data type. | 5 | |||
Type | class | Google\Protobuf\Internal\FieldDescriptorProto | vendor/ |
Protobuf type <code>google.protobuf.FieldDescriptorProto.Type</code> | ||||
Type | abstract class | PharIo\Manifest | vendor/ |
3 | ||||
Type | class | Drupal\node\Plugin\views\argument | core/ |
Argument handler to accept a node type. | ||||
Type | interface | phpDocumentor\Reflection | vendor/ |
@psalm-immutable | 22 | 69 | ||
TypeAliasImportTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
2 | ||||
TypeAliasTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
2 | ||||
TypeCastSniff | class | SlevomatCodingStandard\Sniffs\PHP | vendor/ |
|||||
TypeCheckInterface | interface | JsonSchema\Constraints\TypeCheck | vendor/ |
2 | ||||
TypeComparator | final class | SebastianBergmann\Comparator | vendor/ |
|||||
TypeConstraint | class | JsonSchema\Constraints | vendor/ |
The TypeConstraint Constraints, validates an element against a given type | ||||
TypedConfigInterface | interface | Drupal\Core\Config\Schema | core/ |
Interface for a typed configuration object that contains multiple elements. | 1 | |||
TypedConfigManager | class | Drupal\Core\Config | core/ |
Manages config schema type plugins. | 1 | |||
TypedConfigManagerInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for managing config schema type plugins. | 1 | 34 | ||
TypedData | abstract class | Drupal\Core\TypedData | core/ |
The abstract base class for typed data. | 12 | 10 | ||
TypedDataAwareValidatorTrait | trait | Drupal\Core\TypedData\Validation | core/ |
Defines a trait to access the typed data object of a validated value. | 5 | |||
TypedDataInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data objects. | 2 | 25 | ||
TypedDataInternalPropertiesHelper | class | Drupal\Core\TypedData | core/ |
Helper class for internal properties. | 5 | |||
TypedDataManager | class | Drupal\Core\TypedData | core/ |
Manages data type plugins. | 1 | 1 | ||
TypedDataManagerInterface | interface | Drupal\Core\TypedData | core/ |
Defines an interface for typed data manager. | 2 | 13 | ||
TypedDataMetadata | class | Drupal\Core\TypedData\Validation | core/ |
Validator metadata for typed data objects. | ||||
TypedDataNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts typed data objects to arrays. | 2 | |||
TypedDataTrait | trait | Drupal\Core\TypedData | core/ |
Wrapper methods for classes that needs typed data manager object. | 2 | |||
TypedMap | class | Ramsey\Collection\Map | vendor/ |
A `TypedMap` represents a map of elements where key and value are typed. | ||||
TypedMapInterface | interface | Ramsey\Collection\Map | vendor/ |
A `TypedMapInterface` represents a map of elements where key and value are typed. | 1 | |||
TypedReference | class | Symfony\Component\DependencyInjection | vendor/ |
Represents a PHP type-hinted service reference. | 10 | |||
TypeFilter | interface | DeepCopy\TypeFilter | vendor/ |
6 | 5 | |||
TypeHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 3 | |||
TypeHint | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 5 | |||
TypeHintDeprecatedInClassMethodSignatureRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<InClassMethodNode> | ||||
TypeHintDeprecatedInClosureSignatureRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<InClosureNode> | ||||
TypeHintDeprecatedInFunctionSignatureRule | class | PHPStan\Rules\Deprecations | vendor/ |
@implements Rule<InFunctionNode> | ||||
TypeHintHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 12 | |||
TypeHintReference | in favour of Node\TypeNodeAbstract |
final class | Prophecy\Doubler\Generator | vendor/ |
Tells whether a keyword refers to a class or to a built-in type for the current version of php | |||
TypeInterface | interface | Ramsey\Uuid\Type | vendor/ |
TypeInterface ensures consistency in typed values returned by ramsey/uuid | 3 | |||
TypelessParamTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
4 | ||||
TypeMap | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TypeMatcher | class | DeepCopy\TypeMatcher | vendor/ |
1 | ||||
TypeName | final class | SebastianBergmann\Type | vendor/ |
1 | ||||
TypeNameMatchesFileNameSniff | class | SlevomatCodingStandard\Sniffs\Files | vendor/ |
|||||
TypeNode | interface | PHPStan\PhpDocParser\Ast\Type | vendor/ |
17 | 26 | |||
TypeNodeAbstract | abstract class | Prophecy\Doubler\Generator\Node | vendor/ |
2 | 1 | |||
TypeParser | class | PHPStan\PhpDocParser\Parser | vendor/ |
3 | ||||
TypeResolver | class | Drupal\Core\Config\Schema | core/ |
Provides helper methods for resolving config schema types. | 2 |