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 |
---|---|---|---|---|---|---|---|---|
Configuration | final class | PHPUnit\TextUI\CliArguments | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
Configuration | final class | PHPUnit\TextUI\Configuration | vendor/ |
@psalm-immutable | 13 | |||
Configuration | class | OpenTelemetry\SDK\Common\Configuration | vendor/ |
Configuration can come from one or more of the following sources (from highest to lowest priority): | 21 | |||
Configuration | abstract class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | 3 | ||
ConfigurationCannotBeBuiltException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ConfigurationException | final class | SebastianBergmann\Diff | vendor/ |
1 | ||||
ConfigurationExtensionInterface | interface | Symfony\Component\DependencyInjection\Extension | vendor/ |
ConfigurationExtensionInterface is the interface implemented by container extension classes. | 1 | 3 | ||
ConfigurationRegistry | final class | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
|||||
ConfigurationResolver | class | OpenTelemetry\API\Instrumentation | vendor/ |
1 | ||||
ConfigurationResolverInterface | interface | OpenTelemetry\API\Instrumentation | vendor/ |
1 | ||||
Configurator | final class | OpenTelemetry\API\Instrumentation | vendor/ |
Configures the global (context scoped) instrumentation instances. | 3 | |||
Configurator | final class | OpenTelemetry\SDK\Common\InstrumentationScope | vendor/ |
@template T | 12 | |||
ConfiguratorClosure | final class | OpenTelemetry\SDK\Common\InstrumentationScope | vendor/ |
@internal | ||||
ConfiguratorTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
ConfigureBlockFormBase | abstract class | Drupal\layout_builder\Form | core/ |
Provides a base form for configuring a block. | 2 | |||
Configured | final class | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ConfiguredSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ConfigureSectionForm | class | Drupal\layout_builder\Form | core/ |
Provides a form for configuring a layout section. | 1 | |||
ConfigValidator | class | Composer\Util | vendor/ |
Validates a composer configuration. | 2 | |||
ConfigValueException | class | Drupal\Core\Config | core/ |
Exception thrown when config object values are invalid. | ||||
ConfirmationQuestion | class | Symfony\Component\Console\Question | vendor/ |
Represents a yes/no question. | 3 | |||
ConfirmDeleteMultiple | class | Drupal\comment\Form | core/ |
Provides the comment multiple delete confirmation form. | 1 | |||
ConfirmFormBase | abstract class | Drupal\Core\Form | core/ |
Provides a generic base class for a confirmation form. | 29 | 29 | ||
ConfirmFormHelper | class | Drupal\Core\Form | core/ |
Provides common functionality to confirmation forms. | 2 | |||
ConfirmFormInterface | interface | Drupal\Core\Form | core/ |
Defines the behavior a confirmation form. | 3 | 2 | ||
ConflictHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 2 | ||
ConflictingHeadersException | class | Symfony\Component\HttpFoundation\Exception | vendor/ |
The HTTP request contains headers with conflicting information. | 2 | |||
ConnectException | class | GuzzleHttp\Exception | vendor/ |
Exception thrown when a connection cannot be established. | 3 | |||
Connection | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Connection. | 1 | |||
Connection | class | Symfony\Component\VarDumper\Server | vendor/ |
Forwards serialized Data clones to a server. | 3 | |||
Connection | abstract class | Drupal\Core\Database | core/ |
Base Database API class. | 3 | 95 | ||
Connection | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Connection. | 1 | |||
Connection | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Connection. | ||||
ConnectionNotDefinedException | class | Drupal\Core\Database | core/ |
Exception thrown if an undefined database connection is requested. | 6 | |||
ConsecutiveAt | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
ConsecutiveCalls | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ConsecutiveDot | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
ConsensusStrategy | class | Symfony\Component\Lock\Strategy | vendor/ |
ConsensusStrategy is a StrategyInterface implementation where strictly more than 50% items should be successful. | ||||
ConsideredRisky | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 11 | |||
ConsideredRiskySubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 5 | 5 | ||
Console | final class | SebastianBergmann\Environment | vendor/ |
2 | ||||
ConsoleAlarmEvent | final class | Symfony\Component\Console\Event | vendor/ |
1 | ||||
ConsoleCommandEvent | final class | Symfony\Component\Console\Event | vendor/ |
Allows to do things before the command is executed, like skipping the command or executing code before the command is going to be executed. | 2 | |||
ConsoleErrorEvent | final class | Symfony\Component\Console\Event | vendor/ |
Allows to handle throwables thrown while running a command. | 3 | |||
ConsoleEvent | class | Symfony\Component\Console\Event | vendor/ |
Allows to inspect input and output of a command. | 5 | 2 | ||
ConsoleEvents | final class | Symfony\Component\Console | vendor/ |
Contains all events dispatched by an Application. | 3 | |||
ConsoleExporter | class | OpenTelemetry\SDK\Logs\Exporter | vendor/ |
A JSON console exporter for LogRecords. This is only useful for testing; the output is human-readable, and is not compatible with the OTLP format. | ||||
ConsoleExporterFactory | class | OpenTelemetry\SDK\Logs\Exporter | vendor/ |
|||||
ConsoleInputCollector | final class | Drupal\Core\Recipe | core/ |
Collects input values for recipes from the command line. | ||||
ConsoleIO | class | Composer\IO | vendor/ |
The Input/Output helper. | 1 | 4 |