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 |
---|---|---|---|---|---|---|---|---|
ConfigRenameEvent | class | Drupal\Core\Config | core/ |
Configuration event fired when renaming a configuration object. | 3 | |||
ConfigSchemaAlterException | class | Drupal\Core\Config\Schema | core/ |
Exception for when hook_config_schema_info_alter() adds or removes schema. | 2 | |||
ConfigSchemaChecker | class | Drupal\Core\Config\Development | core/ |
Listens to the config save event and validates schema. | 2 | |||
ConfigSchemaDeprecationTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests config schema deprecation. | ||||
ConfigSchemaDiscovery | class | Drupal\Core\Config\Schema | core/ |
Allows YAML files to define config schema types. | 1 | |||
ConfigSchemaTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests schema for configuration objects. | ||||
ConfigSchemaTestHooks | class | Drupal\config_schema_test\Hook | core/ |
Hook implementations for config_schema_test. | ||||
ConfigSingleExportForm | class | Drupal\config\Form | core/ |
Provides a form for exporting a single configuration file. | 1 | |||
ConfigSingleImportExportTest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for importing/exporting a single configuration. | ||||
ConfigSingleImportForm | class | Drupal\config\Form | core/ |
Provides a form for importing a single configuration file. | 1 | |||
ConfigSnapshotSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Create a snapshot when config is imported. | ||||
ConfigSnapshotTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests config snapshot creation and updating. | ||||
ConfigStorageTestBase | abstract class | Drupal\KernelTests\Core\Config\Storage | core/ |
Base class for testing storage operations. | 6 | |||
ConfigSubscriber | class | Drupal\config | core/ |
Config subscriber. | 2 | |||
ConfigSubscriber | class | Drupal\language\EventSubscriber | core/ |
Deletes the container if default language has changed. | 1 | 2 | ||
ConfigSync | class | Drupal\config\Form | core/ |
Construct the storage changes in a configuration synchronization form. | 1 | |||
ConfigSyncReadmeUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests update to readme inside the configuration synchronization directory. | ||||
ConfigTarget | final class | Drupal\Core\Form | core/ |
Represents the mapping of a config property to a form element. | 9 | |||
ConfigTargetTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\ConfigTarget @group Form | ||||
ConfigTargetTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests forms using #config_target. | ||||
ConfigTargetTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests forms using #config_target and #ajax together. | ||||
ConfigTest | class | Drupal\Tests\system\Functional\File | core/ |
Tests file system configuration operations. | ||||
ConfigTest | class | Drupal\Tests\migrate\Unit\destination | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\destination\Config @group migrate | ||||
ConfigTest | class | Drupal\config_test\Entity | core/ |
Defines the ConfigTest configuration entity. | 3 | 10 | ||
ConfigTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\d8 | core/ |
Tests the config source plugin. | ||||
ConfigTest | class | Drupal\Tests\Core\Config | core/ |
Tests the Config. | ||||
ConfigTest | class | Drupal\Tests\Composer\Plugin\ProjectMessage | core/ |
@coversDefaultClass Drupal\Composer\Plugin\ProjectMessage\Message @group ProjectMessage | ||||
ConfigTest | class | Drupal\Tests\Composer\Plugin\VendorHardening | core/ |
@coversDefaultClass Drupal\Composer\Plugin\VendorHardening\Config @group VendorHardening | ||||
ConfigTestAccessControlHandler | class | Drupal\config_test | core/ |
Defines the access control handler for the config_test entity type. | 1 | |||
ConfigTestController | class | Drupal\config_test | core/ |
Route controller class for the config_test module. | ||||
ConfigTestForm | class | Drupal\config_test | core/ |
Form controller for the test config edit forms. | 2 | |||
ConfigTestHooks | class | Drupal\config_test\Hook | core/ |
Hook implementations for config_test. | ||||
ConfigTestHooksHooks | class | Drupal\config_test\Hook | core/ |
Hook implementations for config_test. | ||||
ConfigTestInterface | interface | Drupal\config_test | core/ |
Provides an interface defining a config_test entity. | 1 | 1 | ||
ConfigTestJsonAnonTest | class | Drupal\Tests\config_test\Functional\Rest | core/ |
@group rest | ||||
ConfigTestJsonBasicAuthTest | class | Drupal\Tests\config_test\Functional\Rest | core/ |
@group rest | ||||
ConfigTestJsonCookieTest | class | Drupal\Tests\config_test\Functional\Rest | core/ |
@group rest | ||||
ConfigTestListBuilder | class | Drupal\config_test | core/ |
Defines a class to build a listing of ConfigTest entities. | 1 | |||
ConfigTestResourceTestBase | abstract class | Drupal\Tests\config_test\Functional\Rest | core/ |
6 | ||||
ConfigTestRestHooks | class | Drupal\config_test_rest\Hook | core/ |
Hook implementations for config_test_rest. | ||||
ConfigTestStorage | class | Drupal\config_test | core/ |
2 | ||||
ConfigTestTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "ConfigTest" config entity type. | ||||
ConfigTestTrait | trait | Drupal\Tests | core/ |
Provides helper methods to deal with config system objects in tests. | 1 | |||
ConfigTestXmlAnonTest | class | Drupal\Tests\config_test\Functional\Rest | core/ |
@group rest | ||||
ConfigTestXmlBasicAuthTest | class | Drupal\Tests\config_test\Functional\Rest | core/ |
@group rest | ||||
ConfigTestXmlCookieTest | class | Drupal\Tests\config_test\Functional\Rest | core/ |
@group rest | ||||
ConfigTranslationAddForm | class | Drupal\config_translation\Form | core/ |
Defines a form for adding configuration translations. | 1 | |||
ConfigTranslationBlockListBuilder | class | Drupal\config_translation\Controller | core/ |
Defines the config translation list builder for blocks. | ||||
ConfigTranslationCacheTest | class | Drupal\Tests\config_translation\Functional | core/ |
Translate settings and entities to various languages. | ||||
ConfigTranslationContextualLink | class | Drupal\config_translation\Plugin\Menu\ContextualLink | core/ |
Defines a contextual link plugin with a dynamic title. |
Pagination
- Previous page
- Page 33
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.