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 |
---|---|---|---|---|---|---|---|---|
Runner | class | PHP_CodeSniffer | vendor/ |
1 | ||||
RunProcessContext | final class | Symfony\Component\Process\Messenger | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | 1 | |||
RunProcessFailedException | final class | Symfony\Component\Process\Exception | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | 1 | |||
RunProcessMessage | class | Symfony\Component\Process\Messenger | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
RunProcessMessageHandler | final class | Symfony\Component\Process\Messenger | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
RunScriptCommand | class | Composer\Command | vendor/ |
@author Fabien Potencier <fabien.potencier@gmail.com> | ||||
RunTestsInSeparateProcesses | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
RunTestsInSeparateProcesses | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
Runtime | class | Composer\Platform | vendor/ |
1 | ||||
Runtime | final class | SebastianBergmann\Environment | vendor/ |
6 | ||||
Runtime | final class | PHPUnit\Event\Runtime | vendor/ |
@psalm-immutable | 1 | |||
RuntimeError | class | Twig\Error | vendor/ |
Exception thrown when an error occurs at runtime. | 6 | |||
RuntimeException | class | PhpTuf\ComposerStager\API\Exception | vendor/ |
This exception is thrown if an error occurs that can only be found at runtime. | 7 | |||
RuntimeException | class | Symfony\Component\Routing\Exception | vendor/ |
4 | ||||
RuntimeException | class | Symfony\Component\Mailer\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | 2 | ||
RuntimeException | class | Symfony\Component\Console\Exception | vendor/ |
@author Jérôme Tamarelle <jerome@tamarelle.net> | 3 | 9 | ||
RuntimeException | class | Symfony\Component\Yaml\Exception | vendor/ |
Exception class thrown when an error occurs during parsing. | 3 | |||
RuntimeException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 3 | ||
RuntimeException | final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
RuntimeException | class | Symfony\Component\String\Exception | vendor/ |
1 | 3 | |||
RuntimeException | class | JsonSchema\Exception | vendor/ |
Wrapper for the RuntimeException | 8 | 2 | ||
RuntimeException | final class | SebastianBergmann\LinesOfCode | vendor/ |
1 | ||||
RuntimeException | final class | SebastianBergmann\Comparator | vendor/ |
1 | ||||
RuntimeException | final class | SebastianBergmann\Template | vendor/ |
|||||
RuntimeException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
Base RuntimeException for Dependency Injection component. | 4 | 36 | ||
RuntimeException | final class | SebastianBergmann\Type | vendor/ |
1 | ||||
RuntimeException | class | Symfony\Component\Validator\Exception | vendor/ |
Base RuntimeException for the Validator component. | 3 | 3 | ||
RuntimeException | class | Symfony\Component\Process\Exception | vendor/ |
RuntimeException for the Process Component. | 5 | 7 | ||
RuntimeException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 1 | ||
RuntimeException | class | Symfony\Component\Mime\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 7 | ||
RuntimeException | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 2 | ||
RuntimeException | class | PHP_CodeSniffer\Exceptions | vendor/ |
12 | ||||
RuntimeException | class | Symfony\Component\Serializer\Exception | vendor/ |
RuntimeException. | 5 | 5 | ||
RuntimeException | final class | SebastianBergmann\Complexity | vendor/ |
1 | ||||
RuntimeException | class | Symfony\Component\Filesystem\Exception | vendor/ |
@author Théo Fidry <theo.fidry@gmail.com> | 2 | 1 | ||
RuntimeException | class | Symfony\Component\BrowserKit\Exception | vendor/ |
1 | 1 | |||
RuntimeException | final class | SebastianBergmann\GlobalState | vendor/ |
1 | ||||
RuntimeExtensionInterface | interface | Twig\Extension | vendor/ |
@author Grégoire Pineau <lyrixx@lyrixx.info> | 1 | 1 | ||
RuntimeLoaderInterface | interface | Twig\RuntimeLoader | vendor/ |
Creates runtime implementations for Twig elements (filters/functions/tests). | 2 | 2 | ||
SafeAnalysisNodeVisitor | final class | Twig\NodeVisitor | vendor/ |
@internal | ||||
SameasTest | class | Twig\Node\Expression\Test | vendor/ |
Checks if a variable is the same as another one (=== in PHP). | 1 | |||
SameSize | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
SampleEntityGeneratorInterface | interface | Drupal\layout_builder\Entity | core/ |
Generates a sample entity. | 1 | 1 | ||
SamplerFactory | class | OpenTelemetry\SDK\Trace | vendor/ |
1 | ||||
SamplerInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
This interface is used to organize sampling logic. | 4 | 4 | ||
SamplingResult | final class | OpenTelemetry\SDK\Trace | vendor/ |
4 | ||||
SandboxExtension | final class | Twig\Extension | vendor/ |
2 | ||||
SandboxNode | class | Twig\Node | vendor/ |
Represents a sandbox node. | 1 | |||
SandboxNodeVisitor | final class | Twig\NodeVisitor | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
SandboxTokenParser | final class | Twig\TokenParser | vendor/ |
Marks a section of a template as untrusted code that must be evaluated in the sandbox mode. | 1 |