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
AssetsStream class Drupal\Core\StreamWrapper core/lib/Drupal/Core/StreamWrapper/AssetsStream.php Defines a Drupal stream wrapper class for optimized assets (assets://). 1
Assign class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php
AssignContextVariable final class Twig\Node\Expression\Variable vendor/twig/twig/src/Node/Expression/Variable/AssignContextVariable.php 4
AssignmentExpression class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/AssignmentExpression.php A node that represents an assignment expression. For example: a = b
AssignmentInConditionSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/CodeAnalysis/AssignmentInConditionSniff.php
AssignmentInConditionSniff class SlevomatCodingStandard\Sniffs\ControlStructures vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/ControlStructures/AssignmentInConditionSniff.php
AssignmentPattern class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/AssignmentPattern.php A node that represents an assignment in a binding context. For example "a = b" in: var {a = b} = c
AssignmentProperty class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/AssignmentProperty.php A node that represents a property in an object binding pattern. For example "a" in: var {a} = b
AssignNameExpression class Twig\Node\Expression vendor/twig/twig/src/Node/Expression/AssignNameExpression.php 1 3
AssignOp abstract class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php 13 15
AssignRef class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php
AssignTemplateVariable final class Twig\Node\Expression\Variable vendor/twig/twig/src/Node/Expression/Variable/AssignTemplateVariable.php 4
AssignThisSniff class PHP_CodeSniffer\Standards\MySource\Sniffs\Objects vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/Objects/AssignThisSniff.php
AssociativeArrayMap class Ramsey\Collection\Map vendor/ramsey/collection/src/Map/AssociativeArrayMap.php `AssociativeArrayMap` represents a standard associative array object.
AsTaggedItem class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AsTaggedItem.php An attribute to tell under which index and priority a service class should be found in tagged iterators/locators. 1
AsTargetedValueResolver class Symfony\Component\HttpKernel\Attribute vendor/symfony/http-kernel/Attribute/AsTargetedValueResolver.php Service tag to autoconfigure targeted value resolvers.
AsymmetricVisibilityTokenEmulator final class PhpParser\Lexer\TokenEmulator vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php 1
AsynchronousInstrument interface OpenTelemetry\API\Metrics vendor/open-telemetry/api/Metrics/AsynchronousInstrument.php Marker interface for asynchronous instruments. 3 2
AsynchronousInstruments final class OpenTelemetry\SDK\Metrics vendor/open-telemetry/sdk/Metrics/AsynchronousInstruments.php @internal
AsynchronousMetricStream final class OpenTelemetry\SDK\Metrics\Stream vendor/open-telemetry/sdk/Metrics/Stream/AsynchronousMetricStream.php @internal 1
AtextAfterCFWS class Egulias\EmailValidator\Result\Reason vendor/egulias/email-validator/src/Result/Reason/AtextAfterCFWS.php 1
AtLeastOneOf class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/AtLeastOneOf.php Checks that at least one of the given constraint is satisfied. 1
AtLeastOneOfValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/AtLeastOneOfValidator.php @author Przemysław Bogusz <przemyslaw.bogusz@tubotax.pl>
AtLeastVersionCommand final class PHPUnit\TextUI\Command vendor/phpunit/phpunit/src/TextUI/Command/Commands/AtLeastVersionCommand.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
AttachedAssets class Drupal\Core\Asset core/lib/Drupal/Core/Asset/AttachedAssets.php The default attached assets collection. 8
AttachedAssetsInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php The attached assets collection for the current response. 1 10
Attachment class Drupal\views\Plugin\views\display core/modules/views/src/Plugin/views/display/Attachment.php The plugin that handles an attachment display.
AttachmentsInterface interface Drupal\Core\Render core/lib/Drupal/Core/Render/AttachmentsInterface.php The attached metadata collection for a renderable element. 3 6
AttachmentsResponseProcessorInterface interface Drupal\Core\Render core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php Defines an interface for processing attachments of responses that have them. 2 3
AttachmentsTrait trait Drupal\Core\Render core/lib/Drupal/Core/Render/AttachmentsTrait.php Provides an implementation of AttachmentsInterface. 1
AttogramInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php
Attribute final class Doctrine\Common\Annotations\Annotation vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php Annotation that can be used to signal to the parser to check the attribute type during the parsing process. 2
Attribute class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Attribute.php @internal
Attribute class Peast\Selector\Node\Part vendor/mck89/peast/lib/Peast/Selector/Node/Part/Attribute.php Selector part attribute class
Attribute final class PHPStan\PhpDocParser\Ast vendor/phpstan/phpdoc-parser/src/Ast/Attribute.php 4
Attribute class Drupal\Core\Template core/lib/Drupal/Core/Template/Attribute.php Collects, sanitizes, and renders HTML attributes. 25 10
Attribute class PhpParser\Node vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php 2
AttributeAndTargetSpacingSniff class SlevomatCodingStandard\Sniffs\Attributes vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Attributes/AttributeAndTargetSpacingSniff.php
AttributeArray class Drupal\Core\Template core/lib/Drupal/Core/Template/AttributeArray.php A class that defines a type of Attribute that can be added to as an array.
AttributeAutoconfigurationPass final class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AttributeAutoconfigurationPass.php @author Alexander M. Turek <me@derrabus.de>
AttributeBag class Symfony\Component\HttpFoundation\Session\Attribute vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php This class relates to session attribute storage. 1
AttributeBagInterface interface Symfony\Component\HttpFoundation\Session\Attribute vendor/symfony/http-foundation/Session/Attribute/AttributeBagInterface.php Attributes store. 1 1
AttributeBase abstract class Drupal\Component\Plugin\Attribute core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php Provides a base class for classed attributes. 3 1
AttributeBoolean class Drupal\Core\Template core/lib/Drupal/Core/Template/AttributeBoolean.php A class that defines a type of boolean HTML attribute.
AttributeBridgeDecorator class Drupal\Component\Plugin\Discovery core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php Ensures that all definitions are run through the attribute process. 2
AttributeClassDiscovery class Drupal\Component\Plugin\Discovery core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php Defines a discovery mechanism to find plugins with attributes. 1 1
AttributeClassDiscovery class Drupal\Core\Plugin\Discovery core/lib/Drupal/Core/Plugin/Discovery/AttributeClassDiscovery.php Defines a discovery mechanism to find plugins using attributes. 1 1
AttributeClassLoader abstract class Symfony\Component\Routing\Loader vendor/symfony/routing/Loader/AttributeClassLoader.php AttributeClassLoader loads routing information from a PHP class and its methods.
AttributeDirectoryLoader class Symfony\Component\Routing\Loader vendor/symfony/routing/Loader/AttributeDirectoryLoader.php AttributeDirectoryLoader loads routing information from attributes set on PHP classes and methods.
AttributeDiscoveryWithAnnotations class Drupal\Core\Plugin\Discovery core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php Enables both attribute and annotation discovery for plugin definitions. 4

Pagination

  • First page
  • Previous page
  • …
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Page 14
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal