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 |
---|---|---|---|---|---|---|---|---|
ExceptionInterface | interface | Symfony\Component\Mailer\Exception | vendor/ |
Exception interface for all exceptions thrown by the component. | 4 | |||
ExceptionJsonSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Default handling for JSON errors. | ||||
ExceptionLoggingSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Log exceptions without further handling. | ||||
ExceptionMessageIsOrContains | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ExceptionMessageMatchesRegularExpression | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ExceptionTSniff | class | DrupalPractice\Sniffs\General | vendor/ |
Checks that exceptions aren't translated. | ||||
Exclude | class | Symfony\Component\DependencyInjection\Attribute | vendor/ |
An attribute to tell the class should not be registered as service. | 1 | |||
ExcludeDirectoryFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
ExcludeDirectoryFilterIterator filters out directories. | 1 | |||
ExcludedModulesEventSubscriber | final class | Drupal\Core\EventSubscriber | core/ |
The event subscriber preventing excluded modules to be exported. | ||||
ExcludeGlobalVariableFromBackup | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 1 | |||
ExcludeGlobalVariableFromBackup | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
ExcludeGroupFilterIterator | final class | PHPUnit\Runner\Filter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExcludeIterator | final class | SebastianBergmann\FileIterator | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-file-iterator | ||||
ExcludeList | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ExcludeList | final class | SebastianBergmann\GlobalState | vendor/ |
1 | ||||
ExcludeStaticPropertyFromBackup | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
ExcludeStaticPropertyFromBackup | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 1 | |||
ExecCommand | class | Composer\Command | vendor/ |
@author Davey Shafik <me@daveyshafik.com> | ||||
ExecutableException | class | Drupal\Core\Executable | core/ |
Generic executable plugin exception class. | 1 | |||
ExecutableFileSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Files | vendor/ |
|||||
ExecutableFinder | final class | Drupal\package_manager | core/ |
An executable finder which looks for executable paths in configuration. | ||||
ExecutableFinder | class | Symfony\Component\Process | vendor/ |
Generic executable finder. | 8 | |||
ExecutableFinder | final class | PhpTuf\ComposerStager\Internal\Finder\Service | vendor/ |
@package Finder | 2 | |||
ExecutableFinderInterface | interface | PhpTuf\ComposerStager\API\Finder\Service | vendor/ |
Finds executables. | 2 | 8 | 1 | |
ExecutableInterface | interface | Drupal\Core\Executable | core/ |
An interface for executable plugins. | 3 | 3 | ||
ExecutableLinesFindingVisitor | final class | SebastianBergmann\CodeCoverage\StaticAnalysis | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
ExecutableManagerInterface | interface | Drupal\Core\Executable | core/ |
An interface for managers of executable plugins. | 1 | 4 | ||
ExecutablePluginBase | abstract class | Drupal\Core\Executable | core/ |
Provides the basic architecture for executable plugins. | 1 | 1 | ||
Execute | class | WebDriver | vendor/ |
WebDriver\Execute class | 1 | |||
ExecutionAborted | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
ExecutionAbortedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExecutionContext | class | Drupal\Core\Validation | core/ |
Defines an execution context class. | 1 | |||
ExecutionContext | class | Symfony\Component\Validator\Context | vendor/ |
The context used and created by {@link ExecutionContextFactory}. | 3 | |||
ExecutionContextAwareInterface | interface | OpenTelemetry\Context | vendor/ |
2 | ||||
ExecutionContextFactory | class | Symfony\Component\Validator\Context | vendor/ |
Creates new {@link ExecutionContext} instances. | 1 | |||
ExecutionContextFactory | class | Drupal\Core\Validation | core/ |
Defines an execution factory for the Symfony validator. | 2 | |||
ExecutionContextFactoryInterface | interface | Symfony\Component\Validator\Context | vendor/ |
Creates instances of {@link ExecutionContextInterface}. | 2 | 3 | ||
ExecutionContextInterface | interface | Symfony\Component\Validator\Context | vendor/ |
The context of a validation run. | 2 | 16 | ||
ExecutionFinished | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | 3 | |||
ExecutionFinishedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | 3 | ||
ExecutionFinishedSubscriber | final class | PHPUnit\Runner\GarbageCollection | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExecutionOrderDependency | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ExecutionStarted | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | 5 | |||
ExecutionStartedSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ExecutionStartedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | 3 | ||
ExecutionStartedSubscriber | final class | PHPUnit\Runner\GarbageCollection | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Exemplar | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
6 | ||||
Exemplar | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
A representation of an exemplar, which is a sample input measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded. | 1 | |||
ExemplarFilterInterface | interface | OpenTelemetry\SDK\Metrics\Exemplar | vendor/ |
The exemplar spec is not yet stable, and can change at any time. | 3 | 9 | ||
ExemplarReservoirInterface | interface | OpenTelemetry\SDK\Metrics\Exemplar | vendor/ |
4 | 2 |