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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ConditionManager | class | Drupal\Core\Condition | core/ |
A plugin manager for condition plugins. | 2 | 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/ |
Tests Drupal\Core\Condition\ConditionPluginCollection. | ||||
| ConditionTest | class | Drupal\Tests\Core\Database | core/ |
Tests 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 | in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\migrate\Plugin\migrate\source\ConfigEntity instead. Available configuration keys:
Examples: |
class | Drupal\migrate_drupal\Plugin\migrate\source\d8 | core/ |
Drupal 8+ configuration source from database. | 1 | ||
| 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. | 16 | |||
| ConfigActionAttributeTest | class | Drupal\Tests\Core\Config\Action | core/ |
Tests Drupal\Core\Config\Action\Attribute\ConfigAction. | ||||
| ConfigActionException | final class | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 24 | |||
| ConfigActionManager | class | Drupal\Core\Config\Action | core/ |
12 | 2 | |||
| ConfigActionPluginInterface | interface | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 14 | 14 | ||
| ConfigActionsTest | class | Drupal\Tests\block\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\image\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\language\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\node\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\field\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionsTest | class | Drupal\Tests\contact\Kernel | core/ |
Tests Config Actions. | ||||
| ConfigActionTest | class | Drupal\KernelTests\Core\Config\Action | core/ |
Tests the config action system. | ||||
| ConfigActionValidationTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Config Action Validation. | ||||
| 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 | |||
| ConfigConfigurator | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | 1 | |||
| ConfigConfiguratorTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Config Configurator. | ||||
| ConfigController | class | Drupal\config\Controller | core/ |
Returns responses for config module routes. | ||||
| ConfigCrudEvent | class | Drupal\Core\Config | core/ |
Wraps a configuration event for event listeners. | 1 | 24 | ||
| ConfigCRUDTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests CRUD operations on configuration objects. | ||||
| ConfigDependencies | class | Drupal\rest\Entity | core/ |
Calculates rest resource config dependencies. | 1 | |||
| ConfigDependenciesTest | class | Drupal\Tests\rest\Kernel\Entity | core/ |
Tests Drupal\rest\Entity\ConfigDependencies. | ||||
| ConfigDependencyDeleteFormTrait | trait | Drupal\Core\Config\Entity | core/ |
Lists affected configuration entities by a dependency removal. | 2 | |||
| ConfigDependencyManager | class | Drupal\Core\Config\Entity | core/ |
Provides a class to discover configuration entity dependencies. | 6 | |||
| ConfigDependencyManagerTest | class | Drupal\Tests\Core\Config | core/ |
Tests the ConfigDependencyManager class. | ||||
| ConfigDependencyManagerTest | class | Drupal\Tests\Core\Config\Entity | core/ |
Tests the ConfigDependencyManager class. | ||||
| ConfigDependencyTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests for configuration dependencies. | ||||
| ConfigDependencyWebTest | class | Drupal\Tests\config\Functional | core/ |
Tests configuration entities. | ||||
| ConfigDiffTest | class | Drupal\KernelTests\Core\Config | core/ |
Calculating the difference between two sets of configuration. | ||||
| ConfigDirectoryNotDefinedException | class | Drupal\Core\Config | core/ |
An exception thrown when the config sync directory is not defined. | 1 | |||
| ConfigDraggableListBuilderTest | class | Drupal\Tests\config\Functional | core/ |
Tests draggable list builder. | ||||
| ConfigDuplicateUUIDException | class | Drupal\Core\Config | core/ |
Exception thrown when a config object UUID causes a conflict. | 3 |
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.