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 |
---|---|---|---|---|---|---|---|---|
ComposerIsAvailable | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
ComposerIsAvailableInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that the Composer executable is available. | 1 | 3 | ||
ComposerMinimumStabilityValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that the packages to install meet the minimum stability. | ||||
ComposerMirror | class | Composer\Util | vendor/ |
Composer mirror utilities | 1 | |||
ComposerNotReadyException | final class | Drupal\package_manager\Exception | core/ |
Exception thrown if we cannot reliably use Composer. | 1 | |||
ComposerPatchesValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the configuration of the cweagans/composer-patches plugin. | ||||
ComposerPluginsValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the allowed Composer plugins, both in active and stage. | ||||
ComposerProcessRunner | final class | PhpTuf\ComposerStager\Internal\Process\Service | vendor/ |
@package Process | 2 | |||
ComposerProcessRunnerInterface | interface | PhpTuf\ComposerStager\API\Process\Service | vendor/ |
Runs Composer commands. | 1 | 4 | ||
ComposerRepository | class | Composer\Repository | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 2 | |||
ComposerScaffoldCommand | class | Drupal\Composer\Plugin\Scaffold | composer/ |
The "drupal:scaffold" command class. | ||||
ComposerStaticInit053e98aa218507767854e489332e0343 | class | Composer\Autoload | vendor/ |
|||||
ComposerValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the project can be used by the Composer Inspector. | ||||
Composite | final class | OpenTelemetry\SDK\Resource\Detectors | vendor/ |
|||||
Composite | abstract class | Symfony\Component\Validator\Constraints | vendor/ |
A constraint that is composed of other constraints. | 7 | 3 | ||
CompositeConstraintBase | abstract class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Provides a base class for constraints validating multiple fields. | 3 | 4 | ||
CompositeException | class | React\Promise\Exception | vendor/ |
Represents an exception that is a composite of one or more other exceptions. | 1 | |||
CompositeFormElementTrait | trait | Drupal\Core\Render\Element | core/ |
Provides a trait for radios, checkboxes, and similar composite form elements. | ||||
CompositeRepository | class | Composer\Repository | vendor/ |
Composite repository. | 1 | 12 | ||
CompositeResolver | class | OpenTelemetry\SDK\Common\Configuration\Resolver | vendor/ |
@internal | 1 | |||
Compound | abstract class | Symfony\Component\Validator\Constraints | vendor/ |
Extend this class to create a reusable set of constraints. | 1 | |||
Compound | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing a Compound Type. | 2 | |||
CompoundConstraintTestCase | abstract class | Symfony\Component\Validator\Test | vendor/ |
A test case to ease testing Compound Constraints. | ||||
CompoundNamespaceDepthSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Namespaces | vendor/ |
|||||
CompoundValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Maxime Steinhausser <maxime.steinhausser@gmail.com> | 1 | |||
ComputedFileUrl | class | Drupal\file | core/ |
Computed file URL property class. | 1 | |||
ComputedItemListTrait | trait | Drupal\Core\TypedData | core/ |
Provides common functionality for computed item lists. | 2 | |||
Concat | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
2 | ||||
Concat | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
Concat | class | Drupal\migrate\Plugin\migrate\process | core/ |
Concatenates a set of strings. | ||||
ConcatBinary | class | Twig\Node\Expression\Binary | vendor/ |
3 | ||||
ConcatenationSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings | vendor/ |
|||||
Concrete5Installer | class | Composer\Installers | vendor/ |
|||||
ConcreteCMSInstaller | class | Composer\Installers | vendor/ |
|||||
Condition | class | Drupal\Core\Entity\Query\Null | core/ |
Defines the condition class for the null entity query. | ||||
Condition | class | Drupal\Core\Entity\Query\Sql\pgsql | core/ |
Implements entity query conditions for PostgreSQL databases. | ||||
Condition | class | Drupal\Core\Entity\KeyValueStore\Query | core/ |
Defines the condition class for the key value entity query. | ||||
Condition | class | Drupal\Core\Entity\Query\Sql | core/ |
Implements entity query conditions for SQL databases. | 1 | 1 | ||
Condition | class | Drupal\Core\Database\Query | core/ |
Generic class for a series of conditions in a query. | 1 | |||
Condition | class | Drupal\Core\Condition\Annotation | core/ |
Defines a condition plugin annotation object. | ||||
Condition | class | Drupal\Core\Condition\Attribute | core/ |
Defines a condition plugin attribute. | 7 | |||
Condition | class | Drupal\Core\Config\Entity\Query | core/ |
Defines the condition class for the config entity query. | 1 | 1 | ||
ConditionAccessResolverTrait | trait | Drupal\Core\Condition | core/ |
Resolves a set of conditions. | 1 | |||
ConditionAggregate | class | Drupal\Core\Entity\Query\Sql | core/ |
Defines the aggregate condition for sql based storage. | 1 | |||
ConditionAggregateBase | abstract class | Drupal\Core\Entity\Query | core/ |
Defines a common base class for all aggregation entity condition implementations. | 1 | 1 | ||
ConditionAggregateInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines aggregated entity query conditions. | 1 | 1 | ||
ConditionalExpression | class | Twig\Node\Expression | vendor/ |
1 | 4 | |||
ConditionalExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a conditional expression. For example: test() ? ok() : fail() | ||||
ConditionalTypeForParameterNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
4 | ||||
ConditionalTypeNode | class | PHPStan\PhpDocParser\Ast\Type | vendor/ |
4 |