Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ConfigEntityUpdater | class | Drupal\Core\Config\Entity | core/ |
A utility class to make updating configuration entities simple. | 10 | |||
| ConfigEntityUpdaterTest | class | Drupal\KernelTests\Core\Config\Entity | core/ |
Tests \Drupal\Core\Config\Entity\ConfigEntityUpdater. | ||||
| ConfigEntityValidationTestBase | abstract class | Drupal\KernelTests\Core\Config | core/ |
Base class for testing validation of config entities. | 31 | 31 | ||
| ConfigEvents | final class | Drupal\Core\Config | core/ |
Defines events for the configuration system. | 25 | |||
| ConfigEventsTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests events fired on configuration objects. | ||||
| ConfigException | class | Drupal\Core\Config | core/ |
A base exception thrown in any configuration system operations. | 13 | 3 | ||
| ConfigExistsConstraint | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Checks that the value is the name of an existing config object. | 1 | |||
| ConfigExistsConstraintValidator | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Validates that a given config object exists. | 1 | |||
| ConfigExistsConstraintValidatorTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the ConfigExists constraint validator. | ||||
| ConfigExportForm | class | Drupal\config\Form | core/ |
Defines the configuration export form. | 1 | |||
| ConfigExportImportUITest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for importing/exporting configuration. | ||||
| ConfigExportStorageTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests configuration export storage. | ||||
| ConfigExportTest | class | Drupal\Tests\config\FunctionalJavascript | core/ |
Tests the config export form. | ||||
| ConfigExportUITest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for exporting configuration. | ||||
| ConfigFactory | class | Drupal\Core\Config | core/ |
Defines the configuration object factory. | 3 | 2 | ||
| ConfigFactoryInterface | interface | Drupal\Core\Config | core/ |
Defines the interface for a configuration object factory. | 1 | 195 | ||
| ConfigFactoryOverrideBase | abstract class | Drupal\Core\Config | core/ |
Defines a base event listener implementation configuration overrides. | 2 | 2 | ||
| ConfigFactoryOverrideBaseTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\ConfigFactoryOverrideBase. | ||||
| ConfigFactoryOverrideInterface | interface | Drupal\Core\Config | core/ |
Defines the interface for a configuration factory override object. | 9 | 9 | ||
| ConfigFactoryTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\ConfigFactory. | ||||
| ConfigFieldDefinitionTest | class | Drupal\Tests\field\Kernel | core/ |
Tests exposing field definitions for configurable fields. | ||||
| ConfigFieldMapper | class | Drupal\config_translation | core/ |
Configuration mapper for fields. | 1 | |||
| ConfigFieldMapperTest | class | Drupal\Tests\config_translation\Unit | core/ |
Tests the functionality provided by the configuration field mapper. | ||||
| ConfigFileContentTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests reading and writing of configuration files. | ||||
| ConfigFormBase | abstract class | Drupal\Core\Form | core/ |
Base class for implementing system configuration forms. | 33 | 34 | ||
| ConfigFormBaseTrait | trait | Drupal\Core\Form | core/ |
Provides access to configuration for forms. | 4 | |||
| ConfigFormBaseTraitTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\ConfigFormBaseTrait. | ||||
| ConfigFormOverrideTest | class | Drupal\Tests\config\Functional | core/ |
Tests config overrides do not appear on forms that extend ConfigFormBase. | ||||
| ConfigFormTestBase | abstract class | Drupal\KernelTests | core/ |
Full generic test suite for any form that data with the configuration system. | 2 | 2 | ||
| ConfigHandler | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for configuring an item in the Views UI. | ||||
| ConfigHandlerExtra | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for configuring extra information for a Views UI item. | ||||
| ConfigHandlerExtraFormTest | final class | Drupal\Tests\views_ui\FunctionalJavascript | core/ |
Tests the ConfigHandlerExtra form. | ||||
| ConfigHandlerGroup | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for configuring grouping information for a Views UI handler. | ||||
| ConfigHooks | class | Drupal\config\Hook | core/ |
Hook implementations for config. | ||||
| ConfigImportAllTest | class | Drupal\Tests\config\Functional | core/ |
Tests the largest configuration import possible with all available modules. | ||||
| ConfigImporter | class | Drupal\Core\Config | core/ |
Defines a configuration importer. | 10 | |||
| ConfigImporterBatch | class | Drupal\Core\Config\Importer | core/ |
Methods for running the ConfigImporter in a batch. | 3 | |||
| ConfigImporterEvent | class | Drupal\Core\Config | core/ |
Configuration event fired when importing a configuration object. | 7 | |||
| ConfigImporterException | class | Drupal\Core\Config | core/ |
Exception thrown when a config import fails. | 9 | |||
| ConfigImporterFactory | final class | Drupal\Core\Config | core/ |
Factory class to create config importer objects. | 11 | |||
| ConfigImporterFieldPurger | class | Drupal\field | core/ |
Processes field purges before a configuration synchronization. | 1 | |||
| ConfigImporterMissingContentTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests importing configuration which has missing content dependencies. | ||||
| ConfigImporterTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests importing configuration from files into active configuration. | ||||
| ConfigImportForm | class | Drupal\config\Form | core/ |
Defines the configuration import form. | 1 | |||
| ConfigImportInstallProfileTest | class | Drupal\Tests\config\Functional | core/ |
Tests the importing/exporting configuration based on the install profile. | ||||
| ConfigImportModuleUninstallValidatorInterface | interface | Drupal\Core\Extension | core/ |
Special interface for module uninstall validators for configuration import. | 2 | 2 | ||
| ConfigImportRecreateTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests importing recreated configuration entities. | ||||
| ConfigImportRenameValidationTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests validating renamed configuration in a configuration import. | ||||
| 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 |
Pagination
- Previous page
- Page 32
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.