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 |
---|---|---|---|---|---|---|---|---|
NumberInterface | interface | Ramsey\Uuid\Type | vendor/ |
NumberInterface ensures consistency in numeric values returned by ramsey/uuid | 2 | 2 | ||
NumberListField | class | Drupal\options\Plugin\views\argument | core/ |
Argument handler for list field to show human readable name in the summary. | ||||
NumberWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'number' widget. | ||||
NumericArgument | class | Drupal\views\Plugin\views\argument | core/ |
Basic argument handler for arguments that are numeric. | 4 | 2 | ||
NumericArgumentValidator | class | Drupal\views\Plugin\views\argument_validator | core/ |
Validate whether an argument is numeric or not. | ||||
NumericComparator | final class | SebastianBergmann\Comparator | vendor/ |
|||||
NumericField | class | Drupal\views\Plugin\views\field | core/ |
Render a field as a numeric value. | 2 | 2 | ||
NumericFilter | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle greater than/less than filters. | 2 | |||
NumericFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for decimal and integer formatters. | 2 | |||
NumericItemBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Base class for numeric configurable field types. | 3 | |||
NumericLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a numeric literal. | ||||
NumericString | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the type 'string'. | 1 | |||
NumericUnformattedFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'number_unformatted' formatter. | ||||
Numeric_ | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
Value Object representing the 'numeric' pseudo-type, which is either a numeric-string, integer or float. | 1 | |||
ObjectAwareSerializationInterface | interface | Drupal\Component\Serialization | core/ |
Ensures that a serializer is usable for serializing PHP objects. | 1 | 2 | ||
ObjectComparator | class | SebastianBergmann\Comparator | vendor/ |
5 | 1 | |||
ObjectConstraint | class | JsonSchema\Constraints | vendor/ |
The ObjectConstraint Constraints, validates an object against a given schema | ||||
ObjectEquals | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ObjectExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents an object literal. For example: {a: 1, b: 2, c: 3} | ||||
ObjectHasProperty | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ObjectInitializerInterface | interface | Symfony\Component\Validator | vendor/ |
Prepares an object for validation. | 2 | |||
ObjectInstantiationSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects | vendor/ |
|||||
ObjectIterator | class | JsonSchema\Iterator | vendor/ |
@package JsonSchema\Iterator | ||||
ObjectLoader | abstract class | Symfony\Component\Routing\Loader | vendor/ |
A route loader that calls a method on an object to load the routes. | 1 | |||
ObjectMemberCommaSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects | vendor/ |
|||||
ObjectNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
Converts between objects and arrays using the PropertyAccess component. | ||||
ObjectNormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available ObjectNormalizer options. | ||||
ObjectOperatorIndentSniff | class | Drupal\Sniffs\WhiteSpace | vendor/ |
\Drupal\Sniffs\WhiteSpace\ObjectOperatorIndentSniff. | ||||
ObjectOperatorIndentSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace | vendor/ |
|||||
ObjectOperatorSpacingSniff | class | Drupal\Sniffs\WhiteSpace | vendor/ |
Ensure that there are no white spaces before and after the object operator. | ||||
ObjectOperatorSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
ObjectPattern | class | Peast\Syntax\Node | vendor/ |
A node that represents an object binding pattern. For example: var {a, b, c} = d | ||||
ObjectPropertyListExtractor | final class | Symfony\Component\Serializer\Extractor | vendor/ |
@author David Maicher <mail@dmaicher.de> | ||||
ObjectPropertyListExtractorInterface | interface | Symfony\Component\Serializer\Extractor | vendor/ |
@author David Maicher <mail@dmaicher.de> | 1 | |||
ObjectProphecy | class | Prophecy\Prophecy | vendor/ |
@author Konstantin Kudryashov <ever.zet@gmail.com> | 16 | |||
ObjectProphecyException | class | Prophecy\Exception\Prophecy | vendor/ |
2 | 2 | |||
ObjectReflector | final class | SebastianBergmann\ObjectReflector | vendor/ |
3 | ||||
ObjectSerialization | class | Drupal\Core\Test | core/ |
Object to test that security issues around serialization. | ||||
ObjectShape | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
@psalm-immutable | 1 | |||
ObjectShapeItem | final class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
1 | ||||
ObjectShapeItemNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
3 | ||||
ObjectShapeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
7 | ||||
ObjectStateToken | class | Prophecy\Argument\Token | vendor/ |
Object state-checker token. | ||||
ObjectToPopulateTrait | trait | Symfony\Component\Serializer\Normalizer | vendor/ |
|||||
ObjectType | final class | SebastianBergmann\Type | vendor/ |
|||||
ObjectWithPluginCollectionInterface | interface | Drupal\Core\Plugin | core/ |
Provides an interface for an object using a plugin collection. | 1 | 1 | ||
Object_ | class | PhpParser\Node\Expr\Cast | vendor/ |
|||||
Object_ | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing an object. | 2 | |||
ObservableCallback | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | ||||
ObservableCallbackDestructor | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal |