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 |
---|---|---|---|---|---|---|---|---|
CompiledUrlGeneratorDumper | class | Symfony\Component\Routing\Generator\Dumper | vendor/ |
CompiledUrlGeneratorDumper creates a PHP array to be used with CompiledUrlGenerator. | 1 | |||
CompiledUrlMatcher | class | Symfony\Component\Routing\Matcher | vendor/ |
Matches URLs based on rules dumped by CompiledUrlMatcherDumper. | 1 | |||
CompiledUrlMatcherDumper | class | Symfony\Component\Routing\Matcher\Dumper | vendor/ |
CompiledUrlMatcherDumper creates PHP arrays to be used with CompiledUrlMatcher. | 2 | |||
CompiledUrlMatcherTrait | trait | Symfony\Component\Routing\Matcher\Dumper | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
Compiler | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
This class is used to remove circular dependencies between individual passes. | 1 | |||
Compiler | class | Twig | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 99 | |||
Compiler | class | Composer | vendor/ |
The Compiler class compiles composer into a phar | ||||
CompilerPassInterface | interface | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Interface that must be implemented by compilation passes. | 62 | 45 | ||
CompilingMatcher | class | Composer\Semver | vendor/ |
Helper class to evaluate constraint by compiling and reusing the code to evaluate | 5 | |||
CompleteAliasPackage | class | Composer\Package | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 1 | 7 | ||
CompleteCommand | final class | Symfony\Component\Console\Command | vendor/ |
Responsible for providing the values to the shell completion. | 1 | |||
CompletedFuture | final class | OpenTelemetry\SDK\Common\Future | vendor/ |
@template T @template-implements FutureInterface<T> | 6 | |||
CompletePackage | class | Composer\Package | vendor/ |
Package containing additional metadata that is not used by the solver | 1 | 10 | ||
CompletePackageInterface | interface | Composer\Package | vendor/ |
Defines package metadata that is not necessarily needed for solving and installing packages | 3 | 18 | ||
CompletionInput | final class | Symfony\Component\Console\Completion | vendor/ |
An input specialized for shell completion. | 17 | |||
CompletionOutputInterface | interface | Symfony\Component\Console\Completion\Output | vendor/ |
Transforms the { @author Wouter de Jong <wouter@wouterj.nl> | 3 | 1 | ||
CompletionSuggestions | final class | Symfony\Component\Console\Completion | vendor/ |
Stores all completion suggestions for the current input. | 18 | |||
CompletionTrait | trait | Composer\Command | vendor/ |
Adds completion to arguments and options. | ||||
ComplexDataConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Complex data constraint. | ||||
ComplexDataConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates complex data. | ||||
ComplexDataDefinitionBase | abstract class | Drupal\Core\TypedData | core/ |
Base class for complex data definitions. | 2 | 1 | ||
ComplexDataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for complex data definitions. | 3 | 4 | ||
ComplexDataInterface | interface | Drupal\Core\TypedData | core/ |
Interface for complex data; i.e. data containing named and typed properties. | 4 | 11 | ||
ComplexDataNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts the Drupal entity object structures to a normalized array. | 2 | 2 | ||
Complexity | final class | SebastianBergmann\Complexity | vendor/ |
@psalm-immutable | ||||
ComplexityCalculatingVisitor | final class | SebastianBergmann\Complexity | vendor/ |
|||||
ComplexityCollection | final class | SebastianBergmann\Complexity | vendor/ |
@psalm-immutable | ||||
ComplexityCollectionIterator | final class | SebastianBergmann\Complexity | vendor/ |
|||||
ComplexType | abstract class | PhpParser\Node | vendor/ |
This is a base class for complex types, including nullable types and union types. | 3 | 4 | ||
Component | class | Drupal\Core\Plugin | core/ |
Simple value object that contains information about the component. | 5 | |||
ComponentElement | class | Drupal\Core\Render\Element | core/ |
Provides a Single-Directory Component render element. | ||||
ComponentElement | class | PharIo\Manifest | vendor/ |
|||||
ComponentElementCollection | class | PharIo\Manifest | vendor/ |
|||||
ComponentEntityDisplayBase | abstract class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides a destination plugin for migrating entity display components. | 2 | |||
ComponentGenerator | class | Drupal\Composer\Generator | composer/ |
Reconciles Drupal component dependencies with core. | 1 | |||
ComponentLoader | class | Drupal\Core\Template\Loader | core/ |
Lets you load templates using the component ID. | ||||
ComponentMetadata | class | Drupal\Core\Theme\Component | core/ |
Component metadata. | 1 | |||
ComponentNegotiator | class | Drupal\Core\Theme | core/ |
Determines which component should be used. | ||||
ComponentNodeVisitor | class | Drupal\Core\Template | core/ |
Provides a ComponentNodeVisitor to change the generated parse-tree. | ||||
ComponentNotFoundException | class | Drupal\Core\Render\Component\Exception | core/ |
Raised when a component cannot be found. | 4 | |||
ComponentPluginManager | class | Drupal\Core\Theme | core/ |
Defines a plugin manager to deal with components. | 4 | |||
ComponentsTwigExtension | final class | Drupal\Core\Template | core/ |
The twig extension so Drupal can recognize the new code. | ||||
ComponentValidator | class | Drupal\Core\Theme\Component | core/ |
Validates a component based on its definition and the component schema. | 2 | |||
Composer | class | Drupal\Composer | composer/ |
Provides static functions for composer script events. | 3 | |||
Composer | final class | OpenTelemetry\SDK\Resource\Detectors | vendor/ |
|||||
Composer | class | Composer | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author Konstantin Kudryashiv <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de> | 37 | |||
Composer | class | Drupal\Core\Composer | core/ |
Provides static functions for composer script events. | ||||
ComposerAutoloaderInit053e98aa218507767854e489332e0343 | class | vendor/ |
||||||
ComposerExcludeFilter | class | Composer\Package\Archiver | vendor/ |
An exclude filter which processes composer's own exclude rules | ||||
ComposerInspector | class | Drupal\package_manager | core/ |
Defines a class to get information from Composer. | 14 |