Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ComplexTestTypeTransitionForm | class | Drupal\workflow_type_test\Form | core/ |
Form to configure the complex test workflow states. | ||||
ComplexWorkflowTypeTest | class | Drupal\Tests\workflows\Kernel | core/ |
Workflow entity tests that require modules or storage. | ||||
ComponentEntityDisplayBase | abstract class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides a destination plugin for migrating entity display components. | 3 | 2 | ||
ComponentGenerator | class | Drupal\Composer\Generator | composer/ |
Reconciles Drupal component dependencies with core. | 1 | |||
ComponentsIsolatedBuildTest | class | Drupal\BuildTests\Composer\Component | core/ |
Try to install dependencies per component, using Composer. | ||||
ComponentsTaggedReleaseTest | class | Drupal\BuildTests\Composer\Component | core/ |
Demonstrate that the Component generator responds to release tagging. | ||||
Composer | class | Drupal\Core\Composer | core/ |
Provides static functions for composer script events. | 2 | |||
Composer | class | Drupal\Composer | composer/ |
Provides static functions for composer script events. | 9 | |||
ComposerBuildTestBase | abstract class | Drupal\BuildTests\Composer | core/ |
Base class for Composer build tests. | 3 | 3 | ||
ComposerDeprecationTest | class | Drupal\Tests\Core\Composer | core/ |
Tests the deprecations in the Drupal\Core\Composer\Composer class. | ||||
ComposerHookTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests Composer Hooks that run scaffold operations. | ||||
ComposerIntegrationTest | class | Drupal\Tests | core/ |
Tests Composer integration. | ||||
ComposerIntegrationTrait | trait | Drupal\Tests\Composer | core/ |
Some utility functions for testing the Composer integration. | 2 | |||
ComposerProjectTemplatesTest | class | Drupal\BuildTests\Composer\Template | core/ |
Demonstrate that Composer project templates are buildable as patched. | ||||
ComposerScaffoldCommand | class | Drupal\Composer\Plugin\Scaffold | composer/ |
The "drupal:scaffold" command class. | ||||
ComposerTest | class | Drupal\Tests\Composer | core/ |
@coversDefaultClass \Drupal\Composer\Composer @group Composer | ||||
ComposerValidateTest | class | Drupal\BuildTests\Composer | core/ |
@group Composer @requires externalCommand composer | ||||
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. | ||||
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 | ||||
ComputedItemListTrait | trait | Drupal\Core\TypedData | core/ |
Provides common functionality for computed item lists. | 5 | |||
ComputedReferenceTestFieldItemList | class | Drupal\entity_test\Plugin\Field | core/ |
A computed entity reference field item list. | 1 | |||
ComputedString | class | Drupal\entity_test\TypedData | core/ |
A computed property for test strings. | 2 | |||
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. | 1 | |||
ComputedTestFieldItemList | class | Drupal\entity_test\Plugin\Field | core/ |
A computed field item list. | 1 | |||
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\corefake\Driver\Database\corefakeWithAllCustomClasses | core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Condition. | ||||
Condition | class | Drupal\Core\Database\Query | core/ |
Generic class for a series of conditions in a query. | 1 | 4 | ||
Condition | class | Drupal\Core\Entity\Query\Sql | core/ |
Implements entity query conditions for SQL databases. | 1 | 1 | ||
Condition | 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\Core\Entity\KeyValueStore\Query | core/ |
Defines the condition class for the key value entity query. | ||||
Condition | class | Drupal\Core\Condition\Annotation | core/ |
Defines a condition plugin annotation object. | ||||
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 | |||
ConditionAccessResolverTraitTest | class | Drupal\Tests\Core\Condition | core/ |
@coversDefaultClass \Drupal\Core\Condition\ConditionAccessResolverTrait @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/ |
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 | ||
ConditionBase | abstract class | Drupal\Core\Entity\Query | core/ |
Defines a common base class for all entity condition implementations. | 3 | 3 | ||
ConditionFormTest | class | Drupal\Tests\system\Functional\Condition | core/ |
Tests that condition plugins basic form handling is working. | ||||
ConditionFundamentals | abstract class | Drupal\Core\Entity\Query | core/ |
Common code for all implementations of the entity query condition interfaces. | 2 | |||
ConditionInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for a conditional clause in a query. | 5 | 3 | ||
ConditionInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines the entity query condition interface. | 1 | 2 | ||
ConditionInterface | interface | Drupal\Core\Condition | core/ |
An interface for condition plugins. | 1 |
Pagination
- Previous page
- Page 25
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.