Classes, traits, and interfaces in Drupal 9
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
|
Name |
Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|
| ConfigEvents | final class |
Drupal\ |
core/ |
Defines events for the configuration system. | 19 | ||
| ConfigEventsTest | class |
Drupal\ |
core/ |
Tests events fired on configuration objects. | |||
| ConfigException | class |
Drupal\ |
core/ |
A base exception thrown in any configuration system operations. | 13 | 3 | |
| ConfigExportForm | class |
Drupal\ |
core/ |
Defines the configuration export form. | 1 | ||
| ConfigExportImportUITest | class |
Drupal\ |
core/ |
Tests the user interface for importing/exporting configuration. | |||
| ConfigExportStorageTest | class |
Drupal\ |
core/ |
Tests configuration export storage. | |||
| ConfigExportTest | class |
Drupal\ |
core/ |
Tests the config export form. | |||
| ConfigExportUITest | class |
Drupal\ |
core/ |
Tests the user interface for exporting configuration. | |||
| ConfigFactory | class |
Drupal\ |
core/ |
Defines the configuration object factory. | 2 | 2 | |
| ConfigFactoryInterface | interface |
Drupal\ |
core/ |
Defines the interface for a configuration object factory. | 1 | 140 | |
| ConfigFactoryOverrideBase | abstract class |
Drupal\ |
core/ |
Defines a base event listener implementation configuration overrides. | 2 | 2 | |
| ConfigFactoryOverrideBaseTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Config\ConfigFactoryOverrideBase @group config | |||
| ConfigFactoryOverrideInterface | interface |
Drupal\ |
core/ |
Defines the interface for a configuration factory override object. | 8 | 8 | |
| ConfigFactoryTest | class |
Drupal\ |
core/ |
@group Config @coversDefaultClass \Drupal\Core\Config\ConfigFactory | |||
| ConfigFieldDefinitionTest | class |
Drupal\ |
core/ |
Tests exposing field definitions for configurable fields. | |||
| ConfigFieldMapper | class |
Drupal\ |
core/ |
Configuration mapper for fields. | 1 | ||
| ConfigFieldMapperTest | class |
Drupal\ |
core/ |
Tests the functionality provided by the configuration field mapper. | |||
| ConfigFileContentTest | class |
Drupal\ |
core/ |
Tests reading and writing of configuration files. | |||
| ConfigFormBase | abstract class |
Drupal\ |
core/ |
Base class for implementing system configuration forms. | 33 | 33 | |
| ConfigFormBaseTrait | trait |
Drupal\ |
core/ |
Provides access to configuration for forms. | 6 | ||
| ConfigFormBaseTraitTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Form\ConfigFormBaseTrait @group Form | |||
| ConfigFormOverrideTest | class |
Drupal\ |
core/ |
Tests config overrides do not appear on forms that extend ConfigFormBase. | |||
| ConfigFormTestBase | abstract class |
Drupal\ |
core/ |
Full generic test suite for any form that data with the configuration system. | 2 | 2 | |
| ConfigHandler | class |
Drupal\ |
core/ |
Provides a form for configuring an item in the Views UI. | |||
| ConfigHandlerExtra | class |
Drupal\ |
core/ |
Provides a form for configuring extra information for a Views UI item. | |||
| ConfigHandlerGroup | class |
Drupal\ |
core/ |
Provides a form for configuring grouping information for a Views UI handler. | |||
| ConfigImportAllTest | class |
Drupal\ |
core/ |
Tests the largest configuration import possible with all available modules. | |||
| ConfigImporter | class |
Drupal\ |
core/ |
Defines a configuration importer. | 18 | ||
| ConfigImporterBatch | class |
Drupal\ |
core/ |
Methods for running the ConfigImporter in a batch. | 3 | ||
| ConfigImporterEvent | class |
Drupal\ |
core/ |
7 | |||
| ConfigImporterException | class |
Drupal\ |
core/ |
Exception thrown when a config import fails. | 7 | ||
| ConfigImporterFieldPurger | class |
Drupal\ |
core/ |
Processes field purges before a configuration synchronization. | 1 | ||
| ConfigImporterMissingContentTest | class |
Drupal\ |
core/ |
Tests importing configuration which has missing content dependencies. | |||
| ConfigImporterTest | class |
Drupal\ |
core/ |
Tests importing configuration from files into active configuration. | |||
| ConfigImportForm | class |
Drupal\ |
core/ |
Defines the configuration import form. | 1 | ||
| ConfigImportInstallProfileTest | class |
Drupal\ |
core/ |
Tests the importing/exporting configuration based on the install profile. | |||
| ConfigImportRecreateTest | class |
Drupal\ |
core/ |
Tests importing recreated configuration entities. | |||
| ConfigImportRenameValidationTest | class |
Drupal\ |
core/ |
Tests validating renamed configuration in a configuration import. | |||
| ConfigImportSubscriber | class |
Drupal\ |
core/ |
Config import subscriber for config import events. | 2 | ||
| ConfigImportSubscriber | class |
Drupal\ |
core/ |
Check moderation states are not being used before updating workflow config. | 2 | ||
| ConfigImportUITest | class |
Drupal\ |
core/ |
Tests the user interface for importing configuration. | |||
| ConfigImportUploadTest | class |
Drupal\ |
core/ |
Tests importing configuration from an uploaded file. | |||
| ConfigImportValidateEventSubscriberBase | abstract class |
Drupal\ |
core/ |
Defines a base event listener implementation for config sync validation. | 4 | 4 | |
| ConfigInstaller | class |
Drupal\ |
core/ |
2 | |||
| ConfigInstaller | class |
Drupal\ |
core/ |
Provides a proxy class for \Drupal\Core\Config\ConfigInstaller. | |||
| ConfigInstallerInterface | interface |
Drupal\ |
core/ |
Interface for classes that install config. | 2 | 1 | |
| ConfigInstallProfileOverrideTest | class |
Drupal\ |
core/ |
Tests installation and removal of configuration objects in install, disable and uninstall functionality. | |||
| ConfigInstallProfileUnmetDependenciesTest | class |
Drupal\ |
core/ |
Tests install profile config overrides can not add unmet dependencies. | |||
| ConfigInstallTest | class |
Drupal\ |
core/ |
Tests installation of configuration objects in installation functionality. | |||
| ConfigInstallWebTest | class |
Drupal\ |
core/ |
Tests installation and removal of configuration objects in install, disable and uninstall functionality. |