Classes, traits, and interfaces - 8.9.x - drupal

Primary tabs

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 1511

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ConfigInstallProfileUnmetDependenciesTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php Tests install profile config overrides can not add unmet dependencies.
ConfigInstallTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php Tests installation of configuration objects in installation functionality.
ConfigInstallWebTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigInstallWebTest.php Tests installation and removal of configuration objects in install, disable and uninstall functionality.
ConfigLanguageOverrideTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php Confirm that language overrides work.
ConfigLanguageOverrideWebTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php Tests language overrides applied through the website.
ConfigLocalTasksTest class Drupal\Tests\config\Unit\Menu core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php Tests existence of config local tasks.
ConfigManager class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigManager.php The ConfigManager provides helper functions for the configuration system. 2
ConfigManagerInterface interface Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigManagerInterface.php Provides an interface for configuration manager. 1 13
ConfigMapperInterface interface Drupal\config_translation core/modules/config_translation/src/ConfigMapperInterface.php Defines an interface for configuration mapper. 1 4
ConfigMapperLanguageException class Drupal\config_translation\Exception core/modules/config_translation/src/Exception/ConfigMapperLanguageException.php Provides an exception for configuration mappers with multiple languages. 4
ConfigMapperManager class Drupal\config_translation core/modules/config_translation/src/ConfigMapperManager.php Manages plugins for configuration translation mappers. 1 2
ConfigMapperManagerInterface interface Drupal\config_translation core/modules/config_translation/src/ConfigMapperManagerInterface.php Provides a common interface for config mapper managers. 1 8
ConfigMapperManagerTest class Drupal\Tests\config_translation\Unit core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php Tests the functionality provided by configuration translation mapper manager.
ConfigMapperPopulateEvent class Drupal\config_translation\Event core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php Provides a class for events related to configuration translation mappers. 3
ConfigMapperTest class Drupal\Tests\config_translation\Kernel core/modules/config_translation/tests/src/Kernel/ConfigMapperTest.php Tests config mapper.
ConfigModuleOverridesEvent class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigModuleOverridesEvent.php Event object to allow configuration to be overridden by modules.
ConfigModuleOverridesTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigModuleOverridesTest.php Tests module overrides of configuration using event subscribers.
ConfigNameException class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigNameException.php Exception thrown when a config object name is invalid. 3
ConfigNamesMapper class Drupal\config_translation core/modules/config_translation/src/ConfigNamesMapper.php Configuration mapper base implementation. 2 1
ConfigNamesMapperTest class Drupal\Tests\config_translation\Unit core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php Tests the functionality provided by the configuration names mapper.
ConfigOtherModuleTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php Tests default configuration provided by a module that does not own it.
ConfigOverride class Drupal\Core\Installer core/lib/Drupal/Core/Installer/ConfigOverride.php Override configuration during the installer.
ConfigOverrideIntegrationTestCacheContext class Drupal\config_override_integration_test\Cache core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php A cache context service intended for the config override integration test. 2
ConfigOverrider class Drupal\config_override_test core/modules/config/tests/config_override_test/src/ConfigOverrider.php Tests module overrides for configuration. 2
ConfigOverrider class Drupal\config_entity_static_cache_test core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php Tests module overrides for configuration. 1
ConfigOverrider class Drupal\settings_tray_override_test core/modules/settings_tray/tests/modules/settings_tray_override_test/src/ConfigOverrider.php Provides an overridden block for Settings Tray testing. 2
ConfigOverriderLowPriority class Drupal\config_override_test core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php Tests module overrides for configuration. 2
ConfigOverridesPriorityTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php Tests that language, module and settings.php are applied in the correct order.
ConfigOverridesUpdateTest class Drupal\Tests\system\Functional\Update core/modules/system/tests/src/Functional/Update/ConfigOverridesUpdateTest.php Tests system_update_8200().
ConfigOverrideTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigOverrideTest.php Tests configuration overrides via $config in settings.php.
ConfigPrefixLengthException class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigPrefixLengthException.php Exception thrown when the config prefix length is exceeded. 1
ConfigQueryTest class Drupal\config_test\Entity core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php Defines the ConfigQueryTest configuration entity used by the query test. 1
ConfigRenameEvent class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigRenameEvent.php Configuration event fired when renaming a configuration object. 2
ConfigSchemaAlterException class Drupal\Core\Config\Schema core/lib/Drupal/Core/Config/Schema/ConfigSchemaAlterException.php Exception for when hook_config_schema_info_alter() adds or removes schema. 2
ConfigSchemaChecker

in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Core\Config\Development\ConfigSchemaChecker.

class Drupal\Core\Config\Testing core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php Listens to the config save event and validates schema.
ConfigSchemaChecker class Drupal\Core\Config\Development core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php Listens to the config save event and validates schema. 1 4
ConfigSchemaDiscovery class Drupal\Core\Config\Schema core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php Allows YAML files to define config schema types. 1
ConfigSchemaTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php Tests schema for configuration objects.
ConfigSingleExportForm class Drupal\config\Form core/modules/config/src/Form/ConfigSingleExportForm.php Provides a form for exporting a single configuration file. 1
ConfigSingleImportExportTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php Tests the user interface for importing/exporting a single configuration.
ConfigSingleImportForm class Drupal\config\Form core/modules/config/src/Form/ConfigSingleImportForm.php Provides a form for importing a single configuration file. 1
ConfigSnapshotSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php Create a snapshot when config is imported. 2
ConfigSnapshotTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigSnapshotTest.php Tests config snapshot creation and updating.
ConfigStorageTestBase abstract class Drupal\KernelTests\Core\Config\Storage core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php Base class for testing storage operations. 6
ConfigSubscriber class Drupal\config core/modules/config/src/ConfigSubscriber.php Config subscriber. 2
ConfigSubscriber class Drupal\language\EventSubscriber core/modules/language/src/EventSubscriber/ConfigSubscriber.php Deletes the container if default language has changed. 1 2
ConfigSync class Drupal\config\Form core/modules/config/src/Form/ConfigSync.php Construct the storage changes in a configuration synchronization form. 1
ConfigTest class Drupal\config_test\Entity core/modules/config/tests/config_test/src/Entity/ConfigTest.php Defines the ConfigTest configuration entity. 1 6
ConfigTest class Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\d8 core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php Tests the config source plugin.
ConfigTest class Drupal\Tests\system\Functional\File core/modules/system/tests/src/Functional/File/ConfigTest.php Tests file system configuration operations.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.