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
AuthorFormatter class Drupal\user\Plugin\Field\FieldFormatter core/modules/user/src/Plugin/Field/FieldFormatter/AuthorFormatter.php Plugin implementation of the 'author' formatter.
AuthorNameFormatter class Drupal\comment\Plugin\Field\FieldFormatter core/modules/comment/src/Plugin/Field/FieldFormatter/AuthorNameFormatter.php Plugin implementation of the 'comment_username' formatter.
AuthorTagSniff class DrupalPractice\Sniffs\Commenting vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Commenting/AuthorTagSniff.php Checks the usage of @author tags.
AutoAddedKeysSniff class Drupal\Sniffs\InfoFiles vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php "version", "project" and "timestamp" are added automatically by drupal.org packaging scripts.
AutoAliasServicePass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AutoAliasServicePass.php Sets a service to be an alias of another one, given a format pattern.
Autoconfigure class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/Autoconfigure.php An attribute to tell how a base type should be autoconfigured. 1 1
AutoconfigureFailedException class Symfony\Component\DependencyInjection\Exception vendor/symfony/dependency-injection/Exception/AutoconfigureFailedException.php 1
AutoconfigureTag class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutoconfigureTag.php An attribute to tell how a base type should be tagged.
AutoconfigureTrait trait Symfony\Component\DependencyInjection\Loader\Configurator\Traits vendor/symfony/dependency-injection/Loader/Configurator/Traits/AutoconfigureTrait.php
AutoEscapeNode class Twig\Node vendor/twig/twig/src/Node/AutoEscapeNode.php Represents an autoescape node. 2
AutoEscapeTokenParser final class Twig\TokenParser vendor/twig/twig/src/TokenParser/AutoEscapeTokenParser.php Marks a section of a template to be escaped or not. 1
AutoExpireFlashBag class Symfony\Component\HttpFoundation\Session\Flash vendor/symfony/http-foundation/Session/Flash/AutoExpireFlashBag.php AutoExpireFlashBag flash message container.
AutoloadGenerator class Composer\Autoload vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php @author Igor Wiedler <igor@wiedler.ch> @author Jordi Boggiano <j.boggiano@seld.be> 3
AutoMappingStrategy final class Symfony\Component\Validator\Mapping vendor/symfony/validator/Mapping/AutoMappingStrategy.php Specifies how the auto-mapping feature should behave. 3
AutoMappingTrait trait Symfony\Component\Validator\Mapping\Loader vendor/symfony/validator/Mapping/Loader/AutoMappingTrait.php Utility methods to create auto mapping loaders.
AutomatedCron class Drupal\automated_cron\EventSubscriber core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php A subscriber running cron after a response is sent. 2
AutomatedCronHooks class Drupal\automated_cron\Hook core/modules/automated_cron/src/Hook/AutomatedCronHooks.php Hook implementations for automated_cron.
AutoRootSpan class OpenTelemetry\SDK\Trace vendor/open-telemetry/sdk/Trace/AutoRootSpan.php 1
Autowire class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/Autowire.php Attribute to tell a parameter how to be autowired. 4 6
AutowireAsDecoratorPass final class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AutowireAsDecoratorPass.php Reads #[AsDecorator] attributes on definitions that are autowired and don't have the "container.ignore_attributes" tag.
AutowireCallable class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireCallable.php Attribute to tell which callable to give to an argument of type Closure. 1 1
AutowireDecorated class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireDecorated.php Autowires the inner object of decorating services. 1
AutowireInline class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireInline.php Allows inline service definition for an argument. 1 2
AutowireIterator class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireIterator.php Autowires an iterator of services based on a tag name. 1 3
AutowireLocator class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireLocator.php Autowires a service locator based on a tag name or an explicit list of key => service-type pairs. 1 1
AutowireMethodOf class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireMethodOf.php Tells which method should be turned into a Closure based on the name of the parameter it's attached to.
AutowirePass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AutowirePass.php Inspects existing service definitions and wires the autowired ones using the type hints of their classes.
AutowireRequiredMethodsPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AutowireRequiredMethodsPass.php Looks for definitions with autowiring enabled and registers their corresponding "#[Required]" methods as setters.
AutowireRequiredPropertiesPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AutowireRequiredPropertiesPass.php Looks for definitions with autowiring enabled and registers their corresponding "#[Required]" properties.
AutowireServiceClosure class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AutowireServiceClosure.php Attribute to wrap a service in a closure that returns it. 3
AutowireTrait trait Drupal\Core\DependencyInjection core/lib/Drupal/Core/DependencyInjection/AutowireTrait.php Defines a trait for automatically wiring dependencies from the container. 2
AutowireTrait trait Symfony\Component\DependencyInjection\Loader\Configurator\Traits vendor/symfony/dependency-injection/Loader/Configurator/Traits/AutowireTrait.php
AutowiringFailedException class Symfony\Component\DependencyInjection\Exception vendor/symfony/dependency-injection/Exception/AutowiringFailedException.php Thrown when a definition cannot be autowired. 1 2
AwaitExpression class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/AwaitExpression.php A node that represents an await expression.
BackedEnumNormalizer final class Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/BackedEnumNormalizer.php Normalizes a { @author Alexandre Daubois <alex.daubois@gmail.com> 1
BackedEnumNormalizerContextBuilder final class Symfony\Component\Serializer\Context\Normalizer vendor/symfony/serializer/Context/Normalizer/BackedEnumNormalizerContextBuilder.php A helper providing autocompletion for available BackedEnumNormalizer options.
BackedEnumTypeSpacingSniff class SlevomatCodingStandard\Sniffs\Classes vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/BackedEnumTypeSpacingSniff.php
BackedEnumValueResolver final class Symfony\Component\HttpKernel\Controller\ArgumentResolver vendor/symfony/http-kernel/Controller/ArgumentResolver/BackedEnumValueResolver.php Attempt to resolve backed enum cases from request attributes, for a route path parameter, leading to a 404 Not Found if the attribute value isn't a valid backing value for the enum type.
BackendChain class Drupal\Core\Cache core/lib/Drupal/Core/Cache/BackendChain.php Defines a chained cache implementation for combining multiple cache backends. 2
BackendCompilerPass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/BackendCompilerPass.php Defines a compiler pass to allow automatic override per backend. 1
BacktickOperatorSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/BacktickOperatorSniff.php
BackupGlobals final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/BackupGlobals.php @psalm-immutable 1
BackupGlobals final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/BackupGlobals.php @psalm-immutable 1
BackupStaticProperties final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/BackupStaticProperties.php @psalm-immutable 1
BackupStaticProperties final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/BackupStaticProperties.php @psalm-immutable 1
BadMethodCallException class Symfony\Component\DependencyInjection\Exception vendor/symfony/dependency-injection/Exception/BadMethodCallException.php Base BadMethodCallException for Dependency Injection component. 1 2
BadMethodCallException final class PHPUnit\Framework\MockObject vendor/phpunit/phpunit/src/Framework/MockObject/Exception/BadMethodCallException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
BadMethodCallException class Symfony\Component\Validator\Exception vendor/symfony/validator/Exception/BadMethodCallException.php Base BadMethodCallException for the Validator component. 1
BadMethodCallException class Symfony\Component\Serializer\Exception vendor/symfony/serializer/Exception/BadMethodCallException.php 1 3
BadMethodCallException class Symfony\Component\BrowserKit\Exception vendor/symfony/browser-kit/Exception/BadMethodCallException.php 1 2

Pagination

  • First page
  • Previous page
  • …
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • Page 16
  • …
  • 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