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
Array_ class PhpParser\Node\Expr\Cast vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php
Array_ class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/Array_.php Represents an array type as described in the PSR-5, the PHPDoc Standard. 3 5
Array_ class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php 2
ArrowFunction class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php
ArrowFunctionDeclarationSniff class SlevomatCodingStandard\Sniffs\Functions vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Functions/ArrowFunctionDeclarationSniff.php
ArrowFunctionExpression class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/ArrowFunctionExpression.php A node that represents an arrow function. For example: var fn = (a, b) => console.log(a, b)
ArrowFunctionExpression class Twig\Node\Expression vendor/twig/twig/src/Node/Expression/ArrowFunctionExpression.php Represents an arrow function. 1
ArtifactRepository class Composer\Repository vendor/composer/composer/src/Composer/Repository/ArtifactRepository.php @author Serge Smertin <serg.smertin@gmail.com>
AsAlias final class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AsAlias.php An attribute to tell under which alias a service should be registered or to use the implemented interface if no parameter is given. 1
AsciiSlugger class Symfony\Component\String\Slugger vendor/symfony/string/Slugger/AsciiSlugger.php @author Titouan Galopin <galopintitouan@gmail.com>
AsCommand class Symfony\Component\Console\Attribute vendor/symfony/console/Attribute/AsCommand.php Service tag to autoconfigure commands. 8
AsController class Symfony\Component\HttpKernel\Attribute vendor/symfony/http-kernel/Attribute/AsController.php Autoconfigures controllers as services by applying the `controller.service_arguments` tag to them. 1
AsDecorator class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/AsDecorator.php Declares a decorating service. 1
AsEventListener class Symfony\Component\EventDispatcher\Attribute vendor/symfony/event-dispatcher/Attribute/AsEventListener.php Service tag to autoconfigure event listeners.
AsgardInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php
Assert class Webmozart\Assert vendor/webmozart/assert/src/Assert.php Efficient assertions to validate the input/output of your methods. 37
Assert abstract class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Assert.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1 4
AssertFunctionTypeSpecifyingExtension class PHPStan\Type\PHPUnit\Assert vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertFunctionTypeSpecifyingExtension.php
AssertingContextualValidator class Symfony\Component\Validator\Test vendor/symfony/validator/Test/ConstraintValidatorTestCase.php @internal
AssertionFailed final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionFailed.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AssertionFailedError class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 6 3
AssertionFailedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionFailedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AssertionSucceeded final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionSucceeded.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AssertionSucceededSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionSucceededSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AssertMailTrait trait Drupal\Core\Test core/lib/Drupal/Core/Test/AssertMailTrait.php Provides methods for testing emails sent during test runs.
AssertMethodTypeSpecifyingExtension class PHPStan\Type\PHPUnit\Assert vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertMethodTypeSpecifyingExtension.php
AssertRuleHelper class PHPStan\Rules\PHPUnit vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertRuleHelper.php
AssertSameBooleanExpectedRule class PHPStan\Rules\PHPUnit vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameBooleanExpectedRule.php @implements Rule<NodeAbstract>
AssertSameNullExpectedRule class PHPStan\Rules\PHPUnit vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameNullExpectedRule.php @implements Rule<NodeAbstract>
AssertSameWithCountRule class PHPStan\Rules\PHPUnit vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AssertSameWithCountRule.php @implements Rule<NodeAbstract>
AssertStaticMethodTypeSpecifyingExtension class PHPStan\Type\PHPUnit\Assert vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertStaticMethodTypeSpecifyingExtension.php
AssertTagMethodValueNode class PHPStan\PhpDocParser\Ast\PhpDoc vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/AssertTagMethodValueNode.php 1
AssertTagPropertyValueNode class PHPStan\PhpDocParser\Ast\PhpDoc vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/AssertTagPropertyValueNode.php 1
AssertTagValueNode class PHPStan\PhpDocParser\Ast\PhpDoc vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/AssertTagValueNode.php 1
AssertTypeSpecifyingExtensionHelper class PHPStan\Type\PHPUnit\Assert vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/Assert/AssertTypeSpecifyingExtensionHelper.php
AssetCollectionGrouperInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetCollectionGrouperInterface.php Interface defining a service that logically groups a collection of assets. 2 1
AssetCollectionGroupOptimizerInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php Interface defining a service that optimizes a collection of assets. 2
AssetCollectionOptimizerInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php Interface defining a service that optimizes a collection of assets. 1 3
AssetCollectionRendererInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetCollectionRendererInterface.php Interface defining a service that generates a render array to render assets. 2 3
AssetControllerBase abstract class Drupal\system\Controller core/modules/system/src/Controller/AssetControllerBase.php Defines a controller to serve asset aggregates. 2
AssetDumper class Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetDumper.php Dumps a CSS or JavaScript asset.
AssetDumperInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetDumperInterface.php Interface defining a service that dumps an (optimized) asset. 1
AssetDumperUriInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetDumperUriInterface.php Interface defining a service that dumps an asset to a specified location. 1 1
AssetGroupSetHashTrait trait Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php Provides a method to generate a normalized hash of a given asset group set. 3
AssetOptimizerInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php Interface defining a service that optimizes an asset. 2
AssetQueryString class Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetQueryString.php Stores a cache busting query string service for asset URLs.
AssetQueryStringInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetQueryStringInterface.php Provides a cache busting query string service for asset URLs. 1 1
AssetResolver class Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetResolver.php The default asset resolver.
AssetResolverInterface interface Drupal\Core\Asset core/lib/Drupal/Core/Asset/AssetResolverInterface.php Resolves asset libraries into concrete CSS and JavaScript assets. 1 4
AssetRoutes class Drupal\system\Routing core/modules/system/src/Routing/AssetRoutes.php Defines a routes' callback to register a URL for serving assets.

Pagination

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