Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 131
  • Page 132
  • Page 133
  • Page 134
  • Page 135
  • Page 136
  • Page 137
  • Page 138
  • Page 139
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal