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
ArgumentMetadata class Symfony\Component\HttpKernel\ControllerMetadata vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadata.php Responsible for storing metadata of an argument. 20
ArgumentMetadataFactory final class Symfony\Component\HttpKernel\ControllerMetadata vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactory.php Builds { @author Iltar van der Berg <kjarli@gmail.com> 1
ArgumentMetadataFactoryInterface interface Symfony\Component\HttpKernel\ControllerMetadata vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadataFactoryInterface.php Builds method argument data. 1 1
ArgumentNode class Prophecy\Doubler\Generator\Node vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php Argument node. 2
ArgumentPluginBase abstract class Drupal\views\Plugin\views\argument core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Base class for argument (contextual filter) handler plugins. 13 8
ArgumentResolver final class Symfony\Component\HttpKernel\Controller vendor/symfony/http-kernel/Controller/ArgumentResolver.php Responsible for resolving the arguments passed to an action. 1
ArgumentResolverInterface interface Symfony\Component\HttpKernel\Controller vendor/symfony/http-kernel/Controller/ArgumentResolverInterface.php An ArgumentResolverInterface instance knows how to determine the arguments for a specific action. 2 8
ArgumentsResolver class Drupal\Component\Utility core/lib/Drupal/Component/Utility/ArgumentsResolver.php Resolves the arguments to pass to a callable. 2
ArgumentsResolverInterface interface Drupal\Component\Utility core/lib/Drupal/Component/Utility/ArgumentsResolverInterface.php Resolves the arguments to pass to a callable. 1 1
ArgumentsWildcard class Prophecy\Argument vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php Arguments wildcarding. 6
ArgumentTrait trait Symfony\Component\DependencyInjection\Loader\Configurator\Traits vendor/symfony/dependency-injection/Loader/Configurator/Traits/ArgumentTrait.php
ArgumentTypeNode class Prophecy\Doubler\Generator\Node vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentTypeNode.php 3
ArgumentValidatorPluginBase abstract class Drupal\views\Plugin\views\argument_validator core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php Base argument validator plugin to provide basic functionality. 3
ArgvInput class Symfony\Component\Console\Input vendor/symfony/console/Input/ArgvInput.php ArgvInput represents an input coming from the CLI arguments. 2 2
ArrayAccessGetterSetter final class OpenTelemetry\Context\Propagation vendor/open-telemetry/context/Propagation/ArrayAccessGetterSetter.php Default implementation of {This type is used if no custom getter/setter is provided to { 2
ArrayAccessSniff class SlevomatCodingStandard\Sniffs\Arrays vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Arrays/ArrayAccessSniff.php
ArrayBracketSpacingSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php
ArrayBuild class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/ArrayBuild.php Builds an array based on the key and value configuration. 1 1
ArrayComparator class SebastianBergmann\Comparator vendor/sebastian/comparator/src/ArrayComparator.php Arrays are equal if they contain the same key-value pairs. The order of the keys does not matter. The types of key-value pairs do not matter. 1
ArrayCountToken class Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php Array elements count token.
ArrayDeclarationSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php
ArrayDenormalizer class Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/ArrayDenormalizer.php Denormalizes arrays of objects.
ArrayDimFetch class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php
ArrayDumper class Composer\Package\Dumper vendor/composer/composer/src/Composer/Package/Dumper/ArrayDumper.php @author Konstantin Kudryashiv <ever.zet@gmail.com> @author Jordi Boggiano <j.boggiano@seld.be> 8
ArrayElement abstract class Drupal\Core\Config\Schema core/lib/Drupal/Core/Config/Schema/ArrayElement.php Defines a generic configuration element that contains multiple properties. 2 1
ArrayEntryToken class Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php Array entry token.
ArrayEveryEntryToken class Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php Array every entry token.
ArrayExpression class Twig\Node\Expression vendor/twig/twig/src/Node/Expression/ArrayExpression.php 1 8
ArrayExpression class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/ArrayExpression.php A node that represents an array literal. For example: [a, b, c]
ArrayHasKey final class PHPUnit\Framework\Constraint vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/ArrayHasKey.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
ArrayHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ArrayHelper.php @internal 5
ArrayIndentSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Arrays/ArrayIndentSniff.php
ArrayInput class Symfony\Component\Console\Input vendor/symfony/console/Input/ArrayInput.php ArrayInput represents an input provided as an array. 7
ArrayInterface interface Ramsey\Collection vendor/ramsey/collection/src/ArrayInterface.php `ArrayInterface` provides traversable array functionality to data types. 4 1
ArrayItem class PhpParser\Node vendor/nikic/php-parser/lib/PhpParser/Node/ArrayItem.php 2
ArrayKey final class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/ArrayKey.php Value Object representing a array-key Type. 2
ArrayKeyValue class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ArrayKeyValue.php @internal 1
ArrayLoader class Composer\Package\Loader vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php @author Konstantin Kudryashiv <ever.zet@gmail.com> @author Jordi Boggiano <j.boggiano@seld.be> 1 12
ArrayLoader final class Twig\Loader vendor/twig/twig/src/Loader/ArrayLoader.php Loads a template from an array. 3
ArrayObjectFilter final class DeepCopy\TypeFilter\Spl vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/ArrayObjectFilter.php In PHP 7.4 the storage of an ArrayObject isn't returned as ReflectionProperty. So we deep copy its array copy. 1
ArrayPattern class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/ArrayPattern.php A node that represents an array binding pattern. For example: [a, b, c] = d
ArrayRepository class Composer\Repository vendor/composer/composer/src/Composer/Repository/ArrayRepository.php A repository implementation that simply stores packages in an array 10 2
ArrayShape class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/ArrayShape.php @psalm-immutable 1 1
ArrayShapeItem class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/ArrayShapeItem.php 1 1
ArrayShapeItemNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayShapeItemNode.php 3
ArrayShapeNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayShapeNode.php 6
ArrayShapeUnsealedTypeNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayShapeUnsealedTypeNode.php 1
ArraySniff class Drupal\Sniffs\Arrays vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Arrays/ArraySniff.php ArraySniff.
ArrayTypeNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/ArrayTypeNode.php 7
ArrayValue class Opentelemetry\Proto\Common\V1 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/ArrayValue.php ArrayValue is a list of AnyValue messages. We need ArrayValue as a message since oneof in AnyValue does not allow repeated fields. 1

Pagination

  • First page
  • Previous page
  • …
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal