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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 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. | ||||
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 | 1 | ||
ConditionManager | class | Drupal\Core\Condition | core/ |
A plugin manager for condition plugins. | 2 | |||
ConditionPluginBase | abstract class | Drupal\Core\Condition | core/ |
Provides a basis for fulfilling contexts for condition plugins. | 11 | 11 | ||
ConditionPluginCollection | class | Drupal\Core\Condition | core/ |
Provides a collection of condition plugins. | 2 | |||
ConditionPluginCollectionTest | class | Drupal\KernelTests\Core\Condition | core/ |
@coversDefaultClass \Drupal\Core\Condition\ConditionPluginCollection | ||||
ConditionTest | class | Drupal\Tests\Core\Database | core/ |
@coversDefaultClass \Drupal\Core\Database\Query\Condition | ||||
ConditionTestDualUser | class | Drupal\condition_test\Plugin\Condition | core/ |
Provides a condition that requires two users. | ||||
ConditionTestDualUserTest | class | Drupal\KernelTests\Core\Plugin\Condition | core/ |
Tests a condition that requires two users. | ||||
ConditionTestNoExistingType | class | Drupal\condition_test\Plugin\Condition | core/ |
Provides a condition that has a no existing context. | ||||
Config | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides Configuration Management destination plugin. | 1 | 4 | ||
Config | class | Drupal\Core\Config | core/ |
Defines the default configuration object. | 1 | 28 | ||
Config | class | Drupal\Composer\Plugin\VendorHardening | composer/ |
Determine configuration. | 3 | |||
Config | class | Drupal\migrate_drupal\Plugin\migrate\source\d8 | core/ |
Drupal 8+ configuration source from database. | ||||
ConfigAccessTest | class | Drupal\Tests\settings_tray\FunctionalJavascript | core/ |
Tests handling of configuration overrides. | ||||
ConfigAction | final class | Drupal\Core\Config\Action\Attribute | core/ |
Defines a ConfigAction attribute object. | 13 | |||
ConfigActionAttributeTest | class | Drupal\Tests\Core\Config\Action | core/ |
@coversDefaultClass \Drupal\Core\Config\Action\Attribute\ConfigAction @group Config | ||||
ConfigActionException | final class | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 16 | |||
ConfigActionManager | class | Drupal\Core\Config\Action | core/ |
10 | ||||
ConfigActionPluginInterface | interface | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 11 | 11 | ||
ConfigActionsTest | class | Drupal\Tests\media\Kernel | core/ |
@group media | ||||
ConfigActionsTest | class | Drupal\Tests\language\Kernel | core/ |
@group language | ||||
ConfigActionsTest | class | Drupal\Tests\field\Kernel | core/ |
@group field | ||||
ConfigActionsTest | class | Drupal\Tests\contact\Kernel | core/ |
@group contact | ||||
ConfigActionsTest | class | Drupal\Tests\node\Kernel | core/ |
@group node | ||||
ConfigActionsTest | class | Drupal\Tests\image\Kernel | core/ |
@group image | ||||
ConfigActionsTest | class | Drupal\Tests\block\Kernel | core/ |
@covers \Drupal\block\Plugin\ConfigAction\PlaceBlock @covers \Drupal\block\Plugin\ConfigAction\PlaceBlockDeriver @group block | ||||
ConfigActionsTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@group Recipe | ||||
ConfigActionTest | class | Drupal\KernelTests\Core\Config\Action | core/ |
Tests the config action system. | ||||
ConfigActionValidationTest | class | Drupal\KernelTests\Core\Recipe | core/ |
@group Recipe | ||||
ConfigAfterInstallerTestBase | abstract class | Drupal\FunctionalTests\Installer | core/ |
Provides a class for install profiles to check their installed config. | 2 | |||
ConfigBase | abstract class | Drupal\Core\Config | core/ |
Provides a base class for configuration objects with get/set support. | 2 | 1 | ||
ConfigCacheTag | class | Drupal\system\EventSubscriber | core/ |
A subscriber invalidating cache tags when system config objects are saved. | 2 | |||
ConfigCollectionEvents | final class | Drupal\Core\Config | core/ |
Defines events for working with configuration collections. | 8 | |||
ConfigCollectionInfo | class | Drupal\Core\Config | core/ |
Gets information on all the possible configuration collections. | 3 |
Pagination
- Previous page
- Page 29
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.