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 |
---|---|---|---|---|---|---|---|---|
CodeCoverage | final class | PHPUnit\Metadata\Api | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
CodeCoverageException | class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 1 | ||
CodeCoverageFilterRegistry | final class | PHPUnit\TextUI\Configuration | vendor/ |
CLI options and XML configuration are static within a single PHPUnit process. It is therefore okay to use a Singleton registry here. | 3 | |||
CodeCoverageIgnore | https://github.com/sebastianbergmann/phpunit/issues/5236 |
final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | |||
CodeCoverageReportNotConfiguredException | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CodedInputStream | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
CodedOutputStream | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
CodeExporter | final class | SebastianBergmann\GlobalState | vendor/ |
|||||
CodeIgniterInstaller | class | Composer\Installers | vendor/ |
|||||
CodePointString | class | Symfony\Component\String | vendor/ |
Represents a string of Unicode code points encoded as UTF-8. | ||||
CodeUnit | abstract class | SebastianBergmann\CodeUnit | vendor/ |
@psalm-immutable | 8 | 1 | ||
CodeUnitCollection | final class | SebastianBergmann\CodeUnit | vendor/ |
@template-implements IteratorAggregate<int, CodeUnit> | 1 | |||
CodeUnitCollectionIterator | final class | SebastianBergmann\CodeUnit | vendor/ |
@template-implements Iterator<int, CodeUnit> | ||||
CodeUnitFindingVisitor | final class | SebastianBergmann\CodeCoverage\StaticAnalysis | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
CognitiveSniff | class | SlevomatCodingStandard\Sniffs\Complexity | vendor/ |
Cognitive Complexity | ||||
Collecting | class | PhpParser\ErrorHandler | vendor/ |
Error handler that collects all errors into an array. | ||||
CollectingDispatcher | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Collection | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates a collection with constraints defined for specific keys. | 3 | |||
Collection | class | Ramsey\Collection | vendor/ |
A collection represents a group of objects. | ||||
Collection | final class | phpDocumentor\Reflection\Types | vendor/ |
Represents a collection type as described in the PSR-5, the PHPDoc Standard. | 1 | |||
CollectionConfigurator | class | Symfony\Component\Routing\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
CollectionConstraint | class | JsonSchema\Constraints | vendor/ |
The CollectionConstraint Constraints, validates an array against a given schema | ||||
CollectionException | interface | Ramsey\Collection\Exception | vendor/ |
6 | ||||
CollectionInterface | interface | Ramsey\Collection | vendor/ |
A collection represents a group of values, known as its elements. | 1 | |||
CollectionMismatchException | class | Ramsey\Collection\Exception | vendor/ |
Thrown when attempting to operate on collections of differing types. | 2 | |||
CollectionValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
Collector | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CollectPathsToExcludeEvent | final class | Drupal\package_manager\Event | core/ |
Defines an event that collects paths to exclude. | 11 | |||
ColonSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
Color | final class | Symfony\Component\Console | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Color | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 5 | |||
Color | class | Drupal\Core\Render\Element | core/ |
Provides a form element for choosing a color. | ||||
Color | class | Drupal\Component\Utility | core/ |
Performs color conversions. | 5 | |||
Colors | final class | SebastianBergmann\CodeCoverage\Report\Html | vendor/ |
@psalm-immutable | 3 | |||
ColourDefinitionSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
ColourDefinitionSniff | class | Drupal\Sniffs\CSS | vendor/ |
\Drupal\Sniffs\CSS\ColourDefinitionSniff. | ||||
Com | class | Drupal\Component\Uuid | core/ |
Generates a UUID using the Windows internal GUID extension. | ||||
CombGenerator | class | Ramsey\Uuid\Generator | vendor/ |
CombGenerator generates COMBs (combined UUID/timestamp) | ||||
CombinationExtension | class | Symfony\Component\CssSelector\XPath\Extension | vendor/ |
XPath expression translator combination extension. | ||||
Combinator | class | Peast\Selector\Node | vendor/ |
Selector combinator class | ||||
Combine | class | Drupal\views\Plugin\views\filter | core/ |
Filter handler which allows to search on multiple fields. | ||||
CombinedSelectorNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a combined node. | ||||
CombinedStore | class | Symfony\Component\Lock\Store | vendor/ |
CombinedStore is a PersistingStoreInterface implementation able to manage and synchronize several StoreInterfaces. | ||||
CommaInDomain | class | Egulias\EmailValidator\Result\Reason | vendor/ |
|||||
Command | class | Symfony\Component\Console\Command | vendor/ |
Base class for all commands. | 21 | 42 | ||
Command | interface | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 11 | |||
CommandCompletionTester | class | Symfony\Component\Console\Tester | vendor/ |
Eases the testing of command completion. | ||||
CommandDataCollector | final class | Symfony\Component\Console\DataCollector | vendor/ |
@internal | ||||
CommandEvent | class | Composer\Plugin | vendor/ |
An event for all commands. | 16 | |||
CommandInterface | interface | Drupal\Core\Ajax | core/ |
AJAX command interface. | 31 | 8 |