Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 27
  • Page 28
  • Page 29
  • Page 30
  • Page 31
  • Page 32
  • Page 33
  • Page 34
  • Page 35
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal