Classes, traits, and interfaces - 11.x - drupal
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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ComposerPatchesValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerPatchesValidator[[api-linebreak]] @group package_manager @group #slow @internal | ||||
ComposerPluginImplementsScaffoldEvents | class | Drupal\Tests\fixture\Composer\Plugin | core/ |
A fixture composer plugin implement Drupal scaffold events. | ||||
ComposerPluginsValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the allowed Composer plugins, both in active and stage. | ||||
ComposerPluginsValidatorComplexInvalidTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerPluginsValidator[[api-linebreak]] @group package_manager @group #slow @internal | ||||
ComposerPluginsValidatorInsecureTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerPluginsValidator[[api-linebreak]] @group package_manager @internal | ||||
ComposerPluginsValidatorSimpleInvalidTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerPluginsValidator[[api-linebreak]] @group package_manager @group #slow @internal | ||||
ComposerPluginsValidatorSimpleValidTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerPluginsValidator[[api-linebreak]] @group #slow @group package_manager @internal | ||||
ComposerPluginsValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerPluginsValidator @group package_manager @internal | ||||
ComposerPluginsValidatorTestBase | abstract class | Drupal\Tests\package_manager\Kernel | core/ |
@internal | 3 | |||
ComposerProjectTemplatesTest | class | Drupal\BuildTests\Composer\Template | core/ |
Demonstrate that Composer project templates can be built as patched. | ||||
ComposerRequirementTest | class | Drupal\Tests\package_manager\Functional | core/ |
Tests that Package Manager shows the Composer version on the status report. | ||||
ComposerScaffoldCommand | class | Drupal\Composer\Plugin\Scaffold | composer/ |
The "drupal:scaffold" command class. | ||||
ComposerStagerExceptionTrait | trait | Drupal\package_manager_bypass | core/ |
Trait to make Composer Stager throw pre-determined exceptions in tests. | ||||
ComposerStagerTestTrait | trait | Drupal\Tests\package_manager\Traits | core/ |
Contains helper methods for testing Composer Stager interactions. | 1 | |||
ComposerTest | class | Drupal\Tests\Composer | core/ |
@coversDefaultClass \Drupal\Composer\Composer[[api-linebreak]] @group Composer | ||||
ComposerValidateTest | class | Drupal\BuildTests\Composer | core/ |
Tests. | ||||
ComposerValidator | final class | Drupal\package_manager\Validator | core/ |
Validates the project can be used by the Composer Inspector. | ||||
ComposerValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\Validator\ComposerValidator[[api-linebreak]] @group package_manager @internal | ||||
CompositeConstraintBase | abstract class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Provides a base class for constraints validating multiple fields. | 4 | 6 | ||
CompositeFormElementTrait | trait | Drupal\Core\Render\Element | core/ |
Provides a trait for radios, checkboxes, and similar composite form elements. | ||||
ComputedBundleFieldTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Provides some integration tests for computed bundle fields. | ||||
ComputedFieldTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Provides some integration tests for the Field handler. | ||||
ComputedFileUrl | class | Drupal\file | core/ |
Computed file URL property class. | 2 | |||
ComputedFileUrlTest | class | Drupal\Tests\file\Kernel | core/ |
@coversDefaultClass \Drupal\file\ComputedFileUrl[[api-linebreak]] | ||||
ComputedItemListTrait | trait | Drupal\Core\TypedData | core/ |
Provides common functionality for computed item lists. | 7 | |||
ComputedReferenceTestFieldItemList | class | Drupal\entity_test\Plugin\Field | core/ |
A computed entity reference field item list. | 2 | |||
ComputedString | class | Drupal\entity_test\TypedData | core/ |
A computed property for test strings. | 2 | |||
ComputedTestBundleFieldItemList | class | Drupal\entity_test\Plugin\Field | core/ |
A computed field item list for a bundle field. | 1 | |||
ComputedTestCacheableIntegerItemList | class | Drupal\entity_test\Plugin\Field | core/ |
Item list class for computed cacheable string field. | 1 | |||
ComputedTestCacheableString | class | Drupal\entity_test\Plugin\DataType | core/ |
The string data type with cacheability metadata. | ||||
ComputedTestCacheableStringItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'string' entity field type with cacheability metadata. | ||||
ComputedTestCacheableStringItemList | class | Drupal\entity_test\Plugin\Field | core/ |
Item list class for computed cacheable string field. | 2 | |||
ComputedTestFieldItemList | class | Drupal\entity_test\Plugin\Field | core/ |
A computed field item list. | 2 | |||
Concat | class | Drupal\migrate\Plugin\migrate\process | core/ |
Concatenates a set of strings. | 1 | 2 | ||
ConcatTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the concat process plugin. | ||||
Condition | class | Drupal\Core\Entity\KeyValueStore\Query | core/ |
Defines the condition class for the key value entity query. | ||||
Condition | class | Drupal\Core\Condition\Attribute | core/ |
Defines a condition plugin attribute. | 12 | |||
Condition | class | Drupal\Core\Condition\Annotation | core/ |
Defines a condition plugin annotation object. | ||||
Condition | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Condition. | ||||
Condition | class | Drupal\Core\Config\Entity\Query | core/ |
Defines the condition class for the config entity query. | 1 | 1 | ||
Condition | class | Drupal\Core\Database\Query | core/ |
Generic class for a series of conditions in a query. | 2 | 6 | ||
Condition | class | Drupal\Core\Entity\Query\Sql | core/ |
Implements entity query conditions for SQL databases. | 2 | 2 | ||
Condition | in drupal:11.2.0 and is removed from drupal:12.0.0. The PostgreSQL override of the entity query has been moved to the pgsql module. |
class | Drupal\Core\Entity\Query\Sql\pgsql | core/ |
Implements entity query conditions for PostgreSQL databases. | |||
Condition | class | Drupal\Core\Entity\Query\Null | core/ |
Defines the condition class for the null entity query. | ||||
Condition | class | Drupal\pgsql\EntityQuery | core/ |
Implements entity query conditions for PostgreSQL databases. | ||||
ConditionAccessResolverTrait | trait | Drupal\Core\Condition | core/ |
Resolves a set of conditions. | 1 | |||
ConditionAccessResolverTraitTest | class | Drupal\Tests\Core\Condition | core/ |
@coversDefaultClass \Drupal\Core\Condition\ConditionAccessResolverTrait[[api-linebreak]] @group Condition | ||||
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/ |
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 |
Pagination
- Previous page
- Page 30
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.