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 |
---|---|---|---|---|---|---|---|---|
Exception | interface | SebastianBergmann\Template | vendor/ |
2 | 4 | |||
Exception | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Exception | interface | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 14 | 1 | ||
Exception | interface | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 5 | 2 | ||
Exception | interface | SebastianBergmann\CodeUnit | vendor/ |
3 | 1 | |||
Exception | interface | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 14 | 2 | ||
Exception | interface | SebastianBergmann\Type | vendor/ |
1 | ||||
Exception | final class | PHPUnit\TextUI\CliArguments | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
Exception | interface | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | |||
Exception | class | Peast\Syntax | vendor/ |
Syntax exception class. Syntax errors in the source are thrown using this using this exception class. | 2 | 1 | ||
Exception | class | Masterminds\HTML5 | vendor/ |
The base exception for the HTML5 project. | 1 | 2 | ||
Exception | interface | PharIo\Version | vendor/ |
8 | 2 | |||
Exception | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
Exception | interface | SebastianBergmann\Timer | vendor/ |
2 | ||||
Exception | interface | SebastianBergmann\Complexity | vendor/ |
1 | ||||
Exception | interface | PHPUnit | vendor/ |
9 | 4 | |||
Exception | interface | Http\Client | vendor/ |
Every HTTP Client related Exception must implement this interface. | 2 | 5 | ||
Exception | interface | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 13 | 4 | ||
Exception | class | TheSeer\Tokenizer | vendor/ |
3 | ||||
Exception | interface | SebastianBergmann\CliParser | vendor/ |
4 | 1 | |||
Exception | interface | SebastianBergmann\CodeCoverage | vendor/ |
19 | 8 | |||
Exception | interface | SebastianBergmann\GlobalState | vendor/ |
1 | ||||
ExceptionCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts common Exception classes to array representation. | ||||
ExceptionCode | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ExceptionComparator | final class | SebastianBergmann\Comparator | vendor/ |
Compares Exception instances for equality. | ||||
ExceptionDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
ExceptionDetectNeedsInstallSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Exception handler to determine if an exception indicates an uninstalled site. | ||||
ExceptionEvent | final class | Symfony\Component\HttpKernel\Event | vendor/ |
Allows to create a response for a thrown exception. | 23 | |||
ExceptionFound | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
ExceptionHandler | class | Drupal\Core\Database | core/ |
Base Database exception handler class. | 1 | 3 | ||
ExceptionHandler | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySql database exception handler class. | ||||
ExceptionInterface | interface | Symfony\Component\HttpFoundation\Exception | vendor/ |
1 | ||||
ExceptionInterface | interface | Symfony\Component\VarExporter\Exception | vendor/ |
3 | 2 | |||
ExceptionInterface | interface | Symfony\Component\CssSelector\Exception | vendor/ |
Interface for exceptions. | 1 | |||
ExceptionInterface | interface | Symfony\Component\Yaml\Exception | vendor/ |
Exception interface for all exceptions thrown by the component. | 1 | |||
ExceptionInterface | interface | Symfony\Component\Console\Exception | vendor/ |
ExceptionInterface. | 6 | 3 | ||
ExceptionInterface | interface | JsonSchema\Exception | vendor/ |
2 | ||||
ExceptionInterface | interface | Symfony\Component\String\Exception | vendor/ |
2 | 5 | |||
ExceptionInterface | interface | Drupal\Component\Plugin\Exception | core/ |
Exception interface for all exceptions thrown by the Plugin component. | 5 | 1 | ||
ExceptionInterface | interface | Symfony\Component\DependencyInjection\Exception | vendor/ |
Base ExceptionInterface for Dependency Injection component. | 5 | 1 | ||
ExceptionInterface | interface | Symfony\Component\Validator\Exception | vendor/ |
Base ExceptionInterface for the Validator component. | 5 | |||
ExceptionInterface | interface | Symfony\Component\Process\Exception | vendor/ |
Marker Interface for the Process Component. | 3 | 1 | ||
ExceptionInterface | interface | Symfony\Component\Lock\Exception | vendor/ |
Base ExceptionInterface for the Lock Component. | 8 | |||
ExceptionInterface | interface | Symfony\Component\Mime\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 4 | |||
ExceptionInterface | interface | Doctrine\Instantiator\Exception | vendor/ |
Base exception marker interface for the instantiator component | 2 | 2 | ||
ExceptionInterface | interface | Symfony\Component\Serializer\Exception | vendor/ |
Base exception interface. | 6 | 2 | ||
ExceptionInterface | interface | Symfony\Component\Filesystem\Exception | vendor/ |
Exception interface for all exceptions thrown by the component. | 3 | 1 | ||
ExceptionInterface | interface | Symfony\Component\Routing\Exception | vendor/ |
ExceptionInterface. | 7 | 3 | ||
ExceptionInterface | interface | Symfony\Component\BrowserKit\Exception | vendor/ |
Base ExceptionInterface for the BrowserKit component. | 6 | |||
ExceptionInterface | interface | PhpTuf\ComposerStager\API\Exception | vendor/ |
An interface that all concrete exceptions must implement. | 5 | 10 |