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
AfterLastTestMethodCalledSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterLastTestMethodCalledSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AfterLastTestMethodFinished final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterLastTestMethodFinished.php @psalm-immutable
AfterLastTestMethodFinishedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterLastTestMethodFinishedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AfterTestMethodCalled final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterTestMethodCalled.php @psalm-immutable
AfterTestMethodCalledSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterTestMethodCalledSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AfterTestMethodFinished final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterTestMethodFinished.php @psalm-immutable
AfterTestMethodFinishedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterTestMethodFinishedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AggregatedType abstract class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/AggregatedType.php Base class for aggregated types like Compound and Intersection 4 2
AggregateException class Prophecy\Exception\Prediction vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php 2
AggregateException class GuzzleHttp\Promise vendor/guzzlehttp/promises/src/AggregateException.php Exception thrown when too many errors occur in the some() or any() methods.
AggregationInterface interface OpenTelemetry\SDK\Metrics vendor/open-telemetry/sdk/Metrics/AggregationInterface.php @psalm-template T 3 11
AggregationTemporality class Opentelemetry\Proto\Metrics\V1 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/AggregationTemporality.php AggregationTemporality defines how a metric aggregator reports aggregated values. It describes how those values relate to the time interval over which they are aggregated. 1
AggregationTemporalitySelectorInterface interface OpenTelemetry\SDK\Metrics vendor/open-telemetry/sdk/Metrics/AggregationTemporalitySelectorInterface.php 3 4
AglInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/AglInstaller.php
AjaxBasePageNegotiator class Drupal\Core\Theme core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php Defines a theme negotiator that deals with the active theme on ajax requests.
AjaxDataCollector class Symfony\Component\HttpKernel\DataCollector vendor/symfony/http-kernel/DataCollector/AjaxDataCollector.php @author Bart van den Burg <bart@burgov.nl>
AjaxFormHelperTrait trait Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AjaxFormHelperTrait.php Provides a helper to for submitting an AJAX form. 5
AjaxHelperTrait trait Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AjaxHelperTrait.php Provides a helper to determine if the current request is via AJAX. 5
AjaxNullComparisonSniff class PHP_CodeSniffer\Standards\MySource\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php
AjaxPageState class Drupal\Core\StackMiddleware core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php Expands the compressed ajax_page_state query parameter into an array.
AjaxRenderer class Drupal\Core\Render\MainContent core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php Default main content renderer for Ajax requests.
AjaxResponse class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AjaxResponse.php JSON response object for AJAX requests. 2 29
AjaxResponseAttachmentsProcessor class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php Processes attachments of AJAX responses.
AjaxResponseSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php Response subscriber to handle AJAX responses. 1
AkauntingInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/AkauntingInstaller.php
Alert class WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/Alert.php WebDriver\Alert class
AlertCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AlertCommand.php AJAX command for a javascript alert box. 1
Alias class Symfony\Component\DependencyInjection vendor/symfony/dependency-injection/Alias.php 16
Alias class PhpParser\Node\Stmt\TraitUseAdaptation vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php
Alias class Symfony\Component\Routing vendor/symfony/routing/Alias.php 1
AliasConfigurator class Symfony\Component\DependencyInjection\Loader\Configurator vendor/symfony/dependency-injection/Loader/Configurator/AliasConfigurator.php @author Nicolas Grekas <p@tchwork.com>
AliasConfigurator class Symfony\Component\Routing\Loader\Configurator vendor/symfony/routing/Loader/Configurator/AliasConfigurator.php 1
AliasDeprecatedPublicServicesPass final class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AliasDeprecatedPublicServicesPass.php
AliasManager class Drupal\path_alias core/modules/path_alias/src/AliasManager.php The default alias manager implementation. 2
AliasManagerInterface interface Drupal\path_alias core/modules/path_alias/src/AliasManagerInterface.php Find an alias for a path and vice versa. 2 7
AliasPackage class Composer\Package vendor/composer/composer/src/Composer/Package/AliasPackage.php @author Jordi Boggiano <j.boggiano@seld.be> 1 27
AliasPathProcessor class Drupal\path_alias\PathProcessor core/modules/path_alias/src/PathProcessor/AliasPathProcessor.php Processes the inbound path using path alias lookups. 2
AliasPrefixList class Drupal\path_alias core/modules/path_alias/src/AliasPrefixList.php Cache a list of valid alias prefixes. 1 2
AliasPrefixListInterface interface Drupal\path_alias core/modules/path_alias/src/AliasPrefixListInterface.php Cache a list of valid alias prefixes. 2
AliasRepository class Drupal\path_alias core/modules/path_alias/src/AliasRepository.php Provides the default path alias lookup operations. 1 1 2
AliasRepositoryInterface interface Drupal\path_alias core/modules/path_alias/src/AliasRepositoryInterface.php Provides an interface for path alias lookup operations. 1
AliasWhitelist

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixList instead.

class Drupal\path_alias core/modules/path_alias/src/AliasWhitelist.php Cache a list of valid alias prefixes. 2
AliasWhitelistInterface

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixListInterface instead.

interface Drupal\path_alias core/modules/path_alias/src/AliasWhitelistInterface.php Cache a list of valid alias prefixes.
AlignFormatter class phpDocumentor\Reflection\DocBlock\Tags\Formatter vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/AlignFormatter.php
Alignment class Drupal\ckeditor5\Plugin\CKEditor5Plugin core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Alignment.php CKEditor 5 Alignment plugin. 1
All class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/All.php When applied to an array (or Traversable object), this constraint allows you to apply a collection of constraints to each element of the array. 2
AllCriteria final class OpenTelemetry\SDK\Metrics\View\SelectionCriteria vendor/open-telemetry/sdk/Metrics/View/SelectionCriteria/AllCriteria.php
AllExemplarFilter final class OpenTelemetry\SDK\Metrics\Exemplar\ExemplarFilter vendor/open-telemetry/sdk/Metrics/Exemplar/ExemplarFilter/AllExemplarFilter.php The exemplar spec is not yet stable, and can change at any time. 1
AllowedPackages class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/AllowedPackages.php Determine recursively which packages have been allowed to scaffold files.
AllowedScaffoldPackagesValidator final class Drupal\package_manager\Validator core/modules/package_manager/src/Validator/AllowedScaffoldPackagesValidator.php Validates the list of packages that are allowed to scaffold files.

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal