Classes, traits, and interfaces - 10.3.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 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ConfigImportRecreateTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigImportRecreateTest.php Tests importing recreated configuration entities.
ConfigImportRenameValidationTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php Tests validating renamed configuration in a configuration import.
ConfigImportSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php Config import subscriber for config import events. 2
ConfigImportThemeInstallTest class Drupal\KernelTests\Core\Theme core/tests/Drupal/KernelTests/Core/Theme/ConfigImportThemeInstallTest.php Tests installing and uninstalling of themes via configuration import.
ConfigImportUIAjaxTest class Drupal\Tests\config\FunctionalJavascript core/modules/config/tests/src/FunctionalJavascript/ConfigImportUIAjaxTest.php Tests the user interface for importing configuration.
ConfigImportUITest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigImportUITest.php Tests the user interface for importing configuration.
ConfigImportUploadTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigImportUploadTest.php Tests importing configuration from an uploaded file.
ConfigImportValidateEventSubscriberBase abstract class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php Defines a base event listener implementation for config sync validation. 4 4
ConfigInstaller class Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigInstaller.php 1 1 2
ConfigInstaller class Drupal\Core\ProxyClass\Config core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php Provides a proxy class for \Drupal\Core\Config\ConfigInstaller.
ConfigInstallerInterface interface Drupal\Core\Config core/lib/Drupal/Core/Config/ConfigInstallerInterface.php Interface for classes that install config. 2 1
ConfigInstallProfileOverrideTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php Tests that configuration objects are correct after various operations.
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 configuration objects before and after module install and uninstall.
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 23
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
ConfigOtherModuleTest class Drupal\Tests\config\Kernel core/modules/config/tests/src/Kernel/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
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 config overrides are applied in the correct order.
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. 3
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 class Drupal\Core\Config\Development core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php Listens to the config save event and validates schema. 2
ConfigSchemaDeprecationTest class Drupal\KernelTests\Core\Config core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaDeprecationTest.php Tests config schema deprecation.
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
ConfigSync class Drupal\config\Form core/modules/config/src/Form/ConfigSync.php Construct the storage changes in a configuration synchronization form. 1
ConfigTarget final class Drupal\Core\Form core/lib/Drupal/Core/Form/ConfigTarget.php Represents the mapping of a config property to a form element. 8
ConfigTargetTest class Drupal\Tests\system\Functional\Form core/modules/system/tests/src/Functional/Form/ConfigTargetTest.php Tests forms using #config_target.
ConfigTargetTest class Drupal\Tests\system\FunctionalJavascript\Form core/modules/system/tests/src/FunctionalJavascript/Form/ConfigTargetTest.php Tests forms using #config_target and #ajax together.

Other projects


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