Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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 |
---|---|---|---|---|---|---|---|---|
ConfigEntityStorageInterface | interface | Drupal\Core\Config\Entity | core/ |
Provides an interface for configuration entity storage. | 5 | 13 | ||
ConfigEntityStorageType | final class | mglaman\PHPStanDrupal\Type\EntityStorage | vendor/ |
1 | ||||
ConfigEntityType | class | Drupal\Core\Entity\Attribute | core/ |
Defines a configuration entity type attribute object. | 29 | |||
ConfigEntityType | class | Drupal\Core\Entity\Annotation | core/ |
Defines a config entity type annotation object. | ||||
ConfigEntityType | class | Drupal\Core\Config\Entity | core/ |
Provides an implementation of a configuration entity type and its metadata. | 2 | |||
ConfigEntityTypeInterface | interface | Drupal\Core\Config\Entity | core/ |
Provides an interface for a configuration entity type and its metadata. | 1 | 8 | ||
ConfigEntityUpdater | class | Drupal\Core\Config\Entity | core/ |
A utility class to make updating configuration entities simple. | 4 | |||
ConfigEvents | final class | Drupal\Core\Config | core/ |
Defines events for the configuration system. | 18 | |||
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. | ||||
ConfigExistsConstraintValidator | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Validates that a given config object exists. | ||||
ConfigExportForm | class | Drupal\config\Form | core/ |
Defines the configuration export form. | 1 | |||
ConfigFactory | class | Drupal\Core\Config | core/ |
Defines the configuration object factory. | 1 | |||
ConfigFactoryInterface | interface | Drupal\Core\Config | core/ |
Defines the interface for a configuration object factory. | 1 | 140 | ||
ConfigFactoryOverrideBase | abstract class | Drupal\Core\Config | core/ |
Defines a base event listener implementation configuration overrides. | 1 | 1 | ||
ConfigFactoryOverrideInterface | interface | Drupal\Core\Config | core/ |
Defines the interface for a configuration factory override object. | 2 | 2 | ||
ConfigFieldMapper | class | Drupal\config_translation | core/ |
Configuration mapper for fields. | ||||
ConfigFormBase | abstract class | Drupal\Core\Form | core/ |
Base class for implementing system configuration forms. | 26 | 26 | ||
ConfigFormBaseTrait | trait | Drupal\Core\Form | core/ |
Provides access to configuration for forms. | 4 | |||
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. | ||||
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. | ||||
ConfigImporter | class | Drupal\Core\Config | core/ |
Defines a configuration importer. | 8 | |||
ConfigImporterBatch | class | Drupal\Core\Config\Importer | core/ |
Methods for running the ConfigImporter in a batch. | 3 | |||
ConfigImporterEvent | class | Drupal\Core\Config | core/ |
6 | ||||
ConfigImporterException | class | Drupal\Core\Config | core/ |
Exception thrown when a config import fails. | 5 | |||
ConfigImporterFieldPurger | class | Drupal\field | core/ |
Processes field purges before a configuration synchronization. | 1 | |||
ConfigImportForm | class | Drupal\config\Form | core/ |
Defines the configuration import form. | 1 | |||
ConfigImportModuleUninstallValidatorInterface | interface | Drupal\Core\Extension | core/ |
Special interface for module uninstall validators for configuration import. | 2 | 2 | ||
ConfigImportSubscriber | class | Drupal\content_moderation\EventSubscriber | core/ |
Check moderation states are not being used before updating workflow config. | 2 | |||
ConfigImportSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Config import subscriber for config import events. | ||||
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 | |||
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 | ||
ConfigManager | class | Drupal\Core\Config | core/ |
The ConfigManager provides helper functions for the configuration system. | ||||
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. | 2 | |||
ConfigMapperManagerInterface | interface | Drupal\config_translation | core/ |
Provides a common interface for config mapper managers. | 1 | 8 | ||
ConfigMapperPopulateEvent | class | Drupal\config_translation\Event | core/ |
Provides a class for events related to configuration translation mappers. | 2 | |||
ConfigModuleOverridesEvent | class | Drupal\Core\Config | core/ |
Event object to allow configuration to be overridden by modules. | ||||
ConfigNameException | class | Drupal\Core\Config | core/ |
Exception thrown when a config object name is invalid. | 2 | |||
ConfigNamesMapper | class | Drupal\config_translation | core/ |
Configuration mapper base implementation. | 1 | |||
ConfigOverride | class | Drupal\Core\Installer | core/ |
Override configuration during the installer. | ||||
ConfigPrefixLengthException | class | Drupal\Core\Config | core/ |
Exception thrown when the config prefix length is exceeded. | 1 | |||
ConfigProperties | interface | OpenTelemetry\API\Configuration | vendor/ |
2 | 4 | |||
ConfigProviderInterface | interface | OpenTelemetry\API\Configuration | vendor/ |
1 | 1 |