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 |
---|---|---|---|---|---|---|---|---|
BatchBuilder | class | Drupal\Core\Batch | core/ |
Builds an array for a batch process. | 15 | |||
BatchController | class | Drupal\system\Controller | core/ |
Controller routines for batch routes. | ||||
BatchLogRecordProcessor | class | OpenTelemetry\SDK\Logs\Processor | vendor/ |
1 | ||||
BatchMemory | class | Drupal\Core\Queue | core/ |
Defines a batch queue handler. | ||||
BatchNegotiator | class | Drupal\system\Theme | core/ |
Sets the active theme for the batch page. | 2 | |||
BatchSpanProcessor | class | OpenTelemetry\SDK\Trace\SpanProcessor | vendor/ |
1 | ||||
BatchSpanProcessorBuilder | class | OpenTelemetry\SDK\Trace\SpanProcessor | vendor/ |
|||||
BatchStorage | class | Drupal\Core\Batch | core/ |
|||||
BatchStorage | class | Drupal\Core\ProxyClass\Batch | core/ |
Provides a proxy class for \Drupal\Core\Batch\BatchStorage. | ||||
BatchStorageInterface | interface | Drupal\Core\Batch | core/ |
Defines a common interface for batch storage operations. | 2 | 3 | ||
BcMathCalculator | class | Brick\Math\Internal\Calculator | vendor/ |
Calculator implementation built around the bcmath library. | ||||
BcRoute | class | Drupal\Core\Routing | core/ |
A backwards compatibility route. | ||||
Before | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
Before | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
BeforeClass | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
BeforeClass | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 2 | |||
BeforeCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for calling the jQuery before() method. | ||||
BeforeFirstTestMethodCalled | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
BeforeFirstTestMethodCalledSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
BeforeFirstTestMethodErrored | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 5 | |||
BeforeFirstTestMethodErroredSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | 2 | ||
BeforeFirstTestMethodFinished | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
BeforeFirstTestMethodFinishedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
BeforeTestClassMethodErroredSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
BeforeTestClassMethodErroredSubscriber | final class | PHPUnit\TextUI\Output\Default\ProgressPrinter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
BeforeTestMethodCalled | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
BeforeTestMethodCalledSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
BeforeTestMethodFinished | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | ||||
BeforeTestMethodFinishedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Beginner | final class | PhpTuf\ComposerStager\Internal\Core | vendor/ |
@package Core | 2 | |||
BeginnerInterface | interface | PhpTuf\ComposerStager\API\Core | vendor/ |
Begins the staging process by copying the active directory to the staging directory. | 2 | 4 | 1 | |
BeginnerPreconditions | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
BeginnerPreconditionsInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts the preconditions for the beginner. | 1 | 2 | ||
Bic | class | Symfony\Component\Validator\Constraints | vendor/ |
Ensures that the value is valid against the BIC format. | ||||
BicValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Michael Hirschler <michael.vhirsch@gmail.com> | ||||
BigDecimal | final class | Brick\Math | vendor/ |
Immutable, arbitrary-precision signed decimal numbers. | 1 | |||
BigInteger | final class | Brick\Math | vendor/ |
An arbitrary-size integer. | 3 | |||
BigIntLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a BigInt literal. | ||||
BigNumber | abstract class | Brick\Math | vendor/ |
Common interface for arbitrary-precision rational numbers. | 3 | |||
BigNumberConverter | Transition to { |
class | Ramsey\Uuid\Converter\Number | vendor/ |
Previously used to integrate moontoast/math as a bignum arithmetic library, BigNumberConverter is deprecated in favor of GenericNumberConverter | 1 | ||
BigNumberTimeConverter | Transition to { |
class | Ramsey\Uuid\Converter\Time | vendor/ |
Previously used to integrate moontoast/math as a bignum arithmetic library, BigNumberTimeConverter is deprecated in favor of GenericTimeConverter | 1 | ||
BigPipe | class | Drupal\big_pipe\Render | core/ |
Service for sending an HTML response in chunks (to get faster page loads). | 1 | 2 | ||
BigPipeController | class | Drupal\big_pipe\Controller | core/ |
Returns responses for BigPipe module routes. | ||||
BigPipeHooks | class | Drupal\big_pipe\Hook | core/ |
Hook implementations for big_pipe. | ||||
BigPipeMarkup | final class | Drupal\big_pipe\Render | core/ |
Defines an object that passes safe strings through BigPipe's render pipeline. | ||||
BigPipeResponse | class | Drupal\big_pipe\Render | core/ |
A response that is sent in chunks by the BigPipe service. | 2 | |||
BigPipeResponseAttachmentsProcessor | class | Drupal\big_pipe\Render | core/ |
Processes attachments of HTML responses with BigPipe enabled. | 2 | |||
BigPipeStrategy | class | Drupal\big_pipe\Render\Placeholder | core/ |
Defines the BigPipe placeholder strategy, to send HTML in chunks. | 2 | 2 | ||
BigRational | final class | Brick\Math | vendor/ |
An arbitrarily large rational number. | ||||
BinaryData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The binary data type. |