Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
AfterLastTestMethodFinished | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
AfterLastTestMethodFinishedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
AfterTestMethodCalled | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
AfterTestMethodCalledSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
AfterTestMethodFinished | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
AfterTestMethodFinishedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
AggregatedType | abstract class | phpDocumentor\Reflection\Types | vendor/ |
Base class for aggregated types like Compound and Intersection | 4 | 2 | ||
AggregateException | class | Prophecy\Exception\Prediction | vendor/ |
2 | ||||
AggregateException | class | GuzzleHttp\Promise | vendor/ |
Exception thrown when too many errors occur in the some() or any() methods. | ||||
AggregationInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
@psalm-template T | 3 | 11 | ||
AggregationTemporality | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
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/ |
3 | 4 | |||
AglInstaller | class | Composer\Installers | vendor/ |
|||||
AjaxBasePageNegotiator | class | Drupal\Core\Theme | core/ |
Defines a theme negotiator that deals with the active theme on ajax requests. | ||||
AjaxDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Bart van den Burg <bart@burgov.nl> | ||||
AjaxFormHelperTrait | trait | Drupal\Core\Ajax | core/ |
Provides a helper to for submitting an AJAX form. | 5 | |||
AjaxHelperTrait | trait | Drupal\Core\Ajax | core/ |
Provides a helper to determine if the current request is via AJAX. | 5 | |||
AjaxNullComparisonSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\PHP | vendor/ |
|||||
AjaxPageState | class | Drupal\Core\StackMiddleware | core/ |
Expands the compressed ajax_page_state query parameter into an array. | ||||
AjaxRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for Ajax requests. | ||||
AjaxResponse | class | Drupal\Core\Ajax | core/ |
JSON response object for AJAX requests. | 2 | 29 | ||
AjaxResponseAttachmentsProcessor | class | Drupal\Core\Ajax | core/ |
Processes attachments of AJAX responses. | ||||
AjaxResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to handle AJAX responses. | 1 | |||
AkauntingInstaller | class | Composer\Installers | vendor/ |
|||||
Alert | class | WebDriver | vendor/ |
WebDriver\Alert class | ||||
AlertCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for a javascript alert box. | 1 | |||
Alias | class | Symfony\Component\DependencyInjection | vendor/ |
16 | ||||
Alias | class | PhpParser\Node\Stmt\TraitUseAdaptation | vendor/ |
|||||
Alias | class | Symfony\Component\Routing | vendor/ |
1 | ||||
AliasConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
AliasConfigurator | class | Symfony\Component\Routing\Loader\Configurator | vendor/ |
1 | ||||
AliasDeprecatedPublicServicesPass | final class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
|||||
AliasManager | class | Drupal\path_alias | core/ |
The default alias manager implementation. | 2 | |||
AliasManagerInterface | interface | Drupal\path_alias | core/ |
Find an alias for a path and vice versa. | 2 | 7 | ||
AliasPackage | class | Composer\Package | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 1 | 27 | ||
AliasPathProcessor | class | Drupal\path_alias\PathProcessor | core/ |
Processes the inbound path using path alias lookups. | 2 | |||
AliasPrefixList | class | Drupal\path_alias | core/ |
Cache a list of valid alias prefixes. | 1 | 2 | ||
AliasPrefixListInterface | interface | Drupal\path_alias | core/ |
Cache a list of valid alias prefixes. | 2 | |||
AliasRepository | class | Drupal\path_alias | core/ |
Provides the default path alias lookup operations. | 1 | 1 | 2 | |
AliasRepositoryInterface | interface | Drupal\path_alias | core/ |
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/ |
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/ |
Cache a list of valid alias prefixes. | |||
AlignFormatter | class | phpDocumentor\Reflection\DocBlock\Tags\Formatter | vendor/ |
|||||
Alignment | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Alignment plugin. | 1 | |||
All | class | Symfony\Component\Validator\Constraints | vendor/ |
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/ |
|||||
AllExemplarFilter | final class | OpenTelemetry\SDK\Metrics\Exemplar\ExemplarFilter | vendor/ |
The exemplar spec is not yet stable, and can change at any time. | 1 | |||
AllowedPackages | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Determine recursively which packages have been allowed to scaffold files. | ||||
AllowedScaffoldPackagesValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the list of packages that are allowed to scaffold files. |