Classes, traits, and interfaces - 10.3.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 |
|---|---|---|---|---|---|---|---|---|
| ConfigImportSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Config import subscriber for config import events. | 2 | |||
| ConfigImportSubscriber | class | Drupal\content_moderation\EventSubscriber | core/ |
Check moderation states are not being used before updating workflow config. | 2 | |||
| ConfigImportThemeInstallTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests installing and uninstalling of themes via configuration import. | ||||
| ConfigImportUIAjaxTest | class | Drupal\Tests\config\FunctionalJavascript | core/ |
Tests the user interface for importing configuration. | ||||
| ConfigImportUITest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for importing configuration. | ||||
| ConfigImportUploadTest | class | Drupal\Tests\config\Functional | core/ |
Tests importing configuration from an uploaded file. | ||||
| ConfigImportValidateEventSubscriberBase | abstract class | Drupal\Core\Config | core/ |
Defines a base event listener implementation for config sync validation. | 4 | 4 | ||
| ConfigInstaller | class | Drupal\Core\Config | core/ |
1 | 1 | 2 | ||
| ConfigInstaller | class | Drupal\Core\ProxyClass\Config | core/ |
Provides a proxy class for \Drupal\Core\Config\ConfigInstaller. | ||||
| ConfigInstallerInterface | interface | Drupal\Core\Config | core/ |
Interface for classes that install config. | 2 | 1 | ||
| ConfigInstallProfileOverrideTest | class | Drupal\Tests\config\Functional | core/ |
Tests that configuration objects are correct after various operations. | ||||
| ConfigInstallProfileUnmetDependenciesTest | class | Drupal\Tests\config\Functional | core/ |
Tests install profile config overrides can not add unmet dependencies. | ||||
| ConfigInstallTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests installation of configuration objects in installation functionality. | ||||
| ConfigInstallWebTest | class | Drupal\Tests\config\Functional | core/ |
Tests configuration objects before and after module install and uninstall. | ||||
| ConfigLanguageOverrideTest | class | Drupal\KernelTests\Core\Config | core/ |
Confirm that language overrides work. | ||||
| ConfigLanguageOverrideWebTest | class | Drupal\Tests\config\Functional | core/ |
Tests language overrides applied through the website. | ||||
| ConfigLocalTasksTest | class | Drupal\Tests\config\Unit\Menu | core/ |
Tests existence of config local tasks. | ||||
| ConfigManager | class | Drupal\Core\Config | core/ |
The ConfigManager provides helper functions for the configuration system. | 2 | |||
| ConfigManagerInterface | interface | Drupal\Core\Config | core/ |
Provides an interface for configuration manager. | 1 | 23 | ||
| ConfigMapperInterface | interface | Drupal\config_translation | core/ |
Defines an interface for configuration mapper. | 2 | 4 | ||
| ConfigMapperLanguageException | class | Drupal\config_translation\Exception | core/ |
Provides an exception for configuration mappers with multiple languages. | 4 | |||
| ConfigMapperManager | class | Drupal\config_translation | core/ |
Manages plugins for configuration translation mappers. | 1 | 2 | ||
| ConfigMapperManagerInterface | interface | Drupal\config_translation | core/ |
Provides a common interface for config mapper managers. | 1 | 8 | ||
| ConfigMapperManagerTest | class | Drupal\Tests\config_translation\Unit | core/ |
Tests the functionality provided by configuration translation mapper manager. | ||||
| ConfigMapperPopulateEvent | class | Drupal\config_translation\Event | core/ |
Provides a class for events related to configuration translation mappers. | 3 | |||
| ConfigMapperTest | class | Drupal\Tests\config_translation\Kernel | core/ |
Tests config mapper. | ||||
| ConfigModuleOverridesEvent | class | Drupal\Core\Config | core/ |
Event object to allow configuration to be overridden by modules. | ||||
| ConfigModuleOverridesTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests module overrides of configuration using event subscribers. | ||||
| ConfigNameException | class | Drupal\Core\Config | core/ |
Exception thrown when a config object name is invalid. | 3 | |||
| ConfigNamesMapper | class | Drupal\config_translation | core/ |
Configuration mapper base implementation. | 2 | 1 | ||
| ConfigNamesMapperTest | class | Drupal\Tests\config_translation\Unit | core/ |
Tests the functionality provided by the configuration names mapper. | ||||
| ConfigOtherModuleTest | class | Drupal\Tests\config\Kernel | core/ |
Tests default configuration provided by a module that does not own it. | ||||
| ConfigOverride | class | Drupal\Core\Installer | core/ |
Override configuration during the installer. | ||||
| ConfigOverrideIntegrationTestCacheContext | class | Drupal\config_override_integration_test\Cache | core/ |
A cache context service intended for the config override integration test. | 2 | |||
| ConfigOverrider | class | Drupal\config_override_test | core/ |
Tests module overrides for configuration. | 2 | |||
| ConfigOverrider | class | Drupal\config_entity_static_cache_test | core/ |
Tests module overrides for configuration. | 1 | |||
| ConfigOverrider | class | Drupal\settings_tray_override_test | core/ |
Provides an overridden block for Settings Tray testing. | 2 | |||
| ConfigOverriderLowPriority | class | Drupal\config_override_test | core/ |
Tests module overrides for configuration. | 2 | |||
| ConfigOverridesPriorityTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests that config overrides are applied in the correct order. | ||||
| ConfigOverrideTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests configuration overrides via $config in settings.php. | ||||
| ConfigPrefixLengthException | class | Drupal\Core\Config | core/ |
Exception thrown when the config prefix length is exceeded. | 1 | |||
| ConfigQueryTest | class | Drupal\config_test\Entity | core/ |
Defines the ConfigQueryTest configuration entity used by the query test. | 1 | |||
| 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. | ||||
| 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. |
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.