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 |
---|---|---|---|---|---|---|---|---|
ConfigRenameEvent | class | Drupal\Core\Config | core/ |
Configuration event fired when renaming a configuration object. | 2 | |||
ConfigReturnTypeExtension | final class | Composer\PHPStan | vendor/ |
|||||
ConfigSchemaAlterException | class | Drupal\Core\Config\Schema | core/ |
Exception for when hook_config_schema_info_alter() adds or removes schema. | 1 | |||
ConfigSchemaChecker | class | Drupal\Core\Config\Development | core/ |
Listens to the config save event and validates schema. | 1 | |||
ConfigSchemaDiscovery | class | Drupal\Core\Config\Schema | core/ |
Allows YAML files to define config schema types. | 1 | |||
ConfigSingleExportForm | class | Drupal\config\Form | core/ |
Provides a form for exporting a single configuration file. | 1 | |||
ConfigSingleImportForm | class | Drupal\config\Form | core/ |
Provides a form for importing a single configuration file. | 1 | |||
ConfigSnapshotSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Create a snapshot when config is imported. | ||||
ConfigSourceInterface | interface | Composer\Config | vendor/ |
Configuration Source Interface | 1 | 1 | ||
ConfigSubscriber | class | Drupal\language\EventSubscriber | core/ |
Deletes the container if default language has changed. | 1 | 2 | ||
ConfigSubscriber | class | Drupal\config | core/ |
Config subscriber. | 2 | |||
ConfigSync | class | Drupal\config\Form | core/ |
Construct the storage changes in a configuration synchronization form. | 1 | |||
ConfigTarget | final class | Drupal\Core\Form | core/ |
Represents the mapping of a config property to a form element. | 6 | |||
ConfigTrait | trait | OpenTelemetry\SDK\Common\InstrumentationScope | vendor/ |
3 | ||||
ConfigTranslationAddForm | class | Drupal\config_translation\Form | core/ |
Defines a form for adding configuration translations. | ||||
ConfigTranslationBlockListBuilder | class | Drupal\config_translation\Controller | core/ |
Defines the config translation list builder for blocks. | ||||
ConfigTranslationContextualLink | class | Drupal\config_translation\Plugin\Menu\ContextualLink | core/ |
Defines a contextual link plugin with a dynamic title. | ||||
ConfigTranslationContextualLinks | class | Drupal\config_translation\Plugin\Derivative | core/ |
Provides dynamic contextual links for configuration translation. | 1 | |||
ConfigTranslationController | class | Drupal\config_translation\Controller | core/ |
Provides page callbacks for the configuration translation interface. | ||||
ConfigTranslationDeleteForm | class | Drupal\config_translation\Form | core/ |
Builds a form to delete configuration translation. | ||||
ConfigTranslationEditForm | class | Drupal\config_translation\Form | core/ |
Defines a form for editing configuration translations. | ||||
ConfigTranslationEntityListBuilder | class | Drupal\config_translation\Controller | core/ |
Defines the configuration translation list builder for entities. | 2 | |||
ConfigTranslationEntityListBuilderInterface | interface | Drupal\config_translation\Controller | core/ |
Defines an interface for configuration translation entity list builders. | 1 | |||
ConfigTranslationEvents | final class | Drupal\config_translation\Event | core/ |
Provides a list of events dispatched by the Configuration Translation module. | 2 | |||
ConfigTranslationFieldListBuilder | class | Drupal\config_translation\Controller | core/ |
Defines the config translation list builder for field entities. | ||||
ConfigTranslationFormAccess | class | Drupal\config_translation\Access | core/ |
Checks access for displaying the translation add, edit, and delete forms. | 2 | |||
ConfigTranslationFormBase | abstract class | Drupal\config_translation\Form | core/ |
Provides a base form for configuration translations. | 2 | 1 | ||
ConfigTranslationHooks | class | Drupal\config_translation\Hook | core/ |
Hook implementations for config_translation. | ||||
ConfigTranslationListController | class | Drupal\config_translation\Controller | core/ |
Defines the configuration translation list controller. | ||||
ConfigTranslationLocalTask | class | Drupal\config_translation\Plugin\Menu\LocalTask | core/ |
Defines a local task plugin with a dynamic title. | ||||
ConfigTranslationLocalTasks | class | Drupal\config_translation\Plugin\Derivative | core/ |
Provides dynamic local tasks for config translation. | 1 | |||
ConfigTranslationMapperList | class | Drupal\config_translation\Controller | core/ |
Defines the configuration translation mapper list. | ||||
ConfigTranslationOverviewAccess | class | Drupal\config_translation\Access | core/ |
Checks access for displaying the configuration translation overview. | 1 | 2 | ||
Configurable | interface | OpenTelemetry\SDK\Common\InstrumentationScope | vendor/ |
4 | 4 | |||
ConfigurableActionBase | abstract class | Drupal\Core\Action | core/ |
Provides a base implementation for a configurable Action plugin. | 4 | 4 | ||
ConfigurableExtension | abstract class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
This extension sub-class provides first-class integration with the Config/Definition Component. | ||||
ConfigurableExtensionInterface | interface | Symfony\Component\DependencyInjection\Extension | vendor/ |
@author Yonel Ceruto <yonelceruto@gmail.com> | 2 | 2 | ||
ConfigurableImageEffectBase | abstract class | Drupal\image | core/ |
Provides a base class for configurable image effects. | 3 | 3 | ||
ConfigurableImageEffectInterface | interface | Drupal\image | core/ |
Defines the interface for configurable image effects. | 1 | 2 | ||
ConfigurableInterface | interface | Drupal\Component\Plugin | core/ |
Provides an interface for a configurable plugin. | 12 | 17 | ||
ConfigurableLanguage | class | Drupal\language\Entity | core/ |
Defines the ConfigurableLanguage entity. | 5 | |||
ConfigurableLanguageInterface | interface | Drupal\language | core/ |
Provides an interface defining a language entity. | 1 | 4 | ||
ConfigurableLanguageManager | class | Drupal\language | core/ |
Overrides default LanguageManager to provide configured languages. | 3 | |||
ConfigurableLanguageManagerInterface | interface | Drupal\language | core/ |
Common interface for language negotiation services. | 1 | 14 | ||
ConfigurableLanguageRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entities in a configured language. | ||||
ConfigurableMethod | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ConfigurableRepositoryInterface | interface | Composer\Repository | vendor/ |
Configurable repository interface. | 4 | |||
ConfigurableRequirementsInterface | interface | Symfony\Component\Routing\Generator | vendor/ |
ConfigurableRequirementsInterface must be implemented by URL generators that can be configured whether an exception should be generated when the parameters do not match the requirements. It is also possible to disable the requirements check for URL… | 1 | 1 | ||
ConfigurableSearchPluginBase | abstract class | Drupal\search\Plugin | core/ |
Provides a base implementation for a configurable Search plugin. | 1 | 2 | ||
ConfigurableSearchPluginInterface | interface | Drupal\search\Plugin | core/ |
Provides an interface for a configurable Search plugin. | 1 |