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 |
---|---|---|---|---|---|---|---|---|
ConditionBase | abstract class | Drupal\Core\Entity\Query | core/ |
Defines a common base class for all entity condition implementations. | 3 | 3 | ||
ConditionFundamentals | abstract class | Drupal\Core\Entity\Query | core/ |
Common code for all implementations of the entity query condition interfaces. | 2 | |||
ConditionHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 3 | |||
ConditionInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for a conditional clause in a query. | 5 | 2 | ||
ConditionInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines the entity query condition interface. | 1 | 2 | ||
ConditionInterface | interface | Drupal\Core\Condition | core/ |
An interface for condition plugins. | 1 | 1 | ||
ConditionManager | class | Drupal\Core\Condition | core/ |
A plugin manager for condition plugins. | 1 | |||
ConditionManagerCreateInstanceContextConfigurationRule | final class | mglaman\PHPStanDrupal\Rules\Deprecations | vendor/ |
@implements Rule<Node\Expr\MethodCall> | ||||
ConditionPluginBase | abstract class | Drupal\Core\Condition | core/ |
Provides a basis for fulfilling contexts for condition plugins. | 6 | 6 | ||
ConditionPluginCollection | class | Drupal\Core\Condition | core/ |
Provides a collection of condition plugins. | 1 | |||
Config | class | PHP_CodeSniffer | vendor/ |
Stores the configuration used to run PHPCS and PHPCBF. | 33 | |||
Config | class | Drupal\Composer\Plugin\VendorHardening | composer/ |
Determine configuration. | ||||
Config | class | Composer | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 42 | |||
Config | class | Drupal\migrate_drupal\Plugin\migrate\source\d8 | core/ |
Drupal 8+ configuration source from database. | ||||
Config | interface | OpenTelemetry\SDK\Common\InstrumentationScope | vendor/ |
@internal | 3 | 5 | ||
Config | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides Configuration Management destination plugin. | 1 | 1 | ||
Config | class | Drupal\Core\Config | core/ |
Defines the default configuration object. | 1 | 17 | ||
ConfigAction | final class | Drupal\Core\Config\Action\Attribute | core/ |
Defines a ConfigAction attribute object. | 12 | |||
ConfigActionException | final class | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 10 | |||
ConfigActionManager | class | Drupal\Core\Config\Action | core/ |
2 | ||||
ConfigActionPluginInterface | interface | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 11 | 11 | ||
ConfigBase | abstract class | Drupal\Core\Config | core/ |
Provides a base class for configuration objects with get/set support. | 2 | 1 | ||
ConfigCacheTag | class | Drupal\system\EventSubscriber | core/ |
A subscriber invalidating cache tags when system config objects are saved. | 2 | |||
ConfigCollectionEvents | final class | Drupal\Core\Config | core/ |
Defines events for working with configuration collections. | 2 | |||
ConfigCollectionInfo | class | Drupal\Core\Config | core/ |
Gets information on all the possible configuration collections. | 1 | |||
ConfigCommand | class | Composer\Command | vendor/ |
@author Joshua Estes <Joshua.Estes@iostudio.com> @author Jordi Boggiano <j.boggiano@seld.be> | ||||
ConfigConfigurator | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | ||||
ConfigController | class | Drupal\config\Controller | core/ |
Returns responses for config module routes. | ||||
ConfigCrudEvent | class | Drupal\Core\Config | core/ |
Wraps a configuration event for event listeners. | 1 | 17 | ||
ConfigDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
ConfigDependencies | class | Drupal\rest\Entity | core/ |
Calculates rest resource config dependencies. | ||||
ConfigDependencyDeleteFormTrait | trait | Drupal\Core\Config\Entity | core/ |
Lists affected configuration entities by a dependency removal. | 2 | |||
ConfigDependencyManager | class | Drupal\Core\Config\Entity | core/ |
Provides a class to discover configuration entity dependencies. | 4 | |||
ConfigDirectoryNotDefinedException | class | Drupal\Core\Config | core/ |
An exception thrown when the config sync directory is not defined. | ||||
ConfigDuplicateUUIDException | class | Drupal\Core\Config | core/ |
Exception thrown when a config object UUID causes a conflict. | 1 | |||
ConfigEntityAdapter | class | Drupal\Core\Entity\Plugin\DataType | core/ |
Enhances EntityAdapter for config entities. | 2 | |||
ConfigEntityBase | abstract class | Drupal\Core\Config\Entity | core/ |
Defines a base configuration entity class. | 20 | 19 | ||
ConfigEntityBundleBase | abstract class | Drupal\Core\Config\Entity | core/ |
A base class for config entity types that act as bundles. | 7 | 7 | ||
ConfigEntityConfigExportRule | final class | mglaman\PHPStanDrupal\Rules\Deprecations | vendor/ |
|||||
ConfigEntityDenormalizer | final class | Drupal\jsonapi\Normalizer | core/ |
Converts the Drupal config entity object to a JSON:API array structure. | 2 | |||
ConfigEntityDependency | class | Drupal\Core\Config\Entity | core/ |
Provides a value object to discover configuration dependencies. | ||||
ConfigEntityIdLengthException | class | Drupal\Core\Config\Entity\Exception | core/ |
Defines an exception thrown when a configuration entity ID is too long. | 3 | |||
ConfigEntityInterface | interface | Drupal\Core\Config\Entity | core/ |
Defines a common interface for configuration entities. | 29 | 57 | ||
ConfigEntityListBuilder | class | Drupal\Core\Config\Entity | core/ |
Defines the default class to build a listing of configuration entities. | 18 | 17 | ||
ConfigEntityMapper | class | Drupal\config_translation | core/ |
Configuration mapper for configuration entities. | 2 | 1 | ||
ConfigEntityMapperInterface | interface | Drupal\config_translation | core/ |
Defines an interface for configuration entity mappers. | 1 | 1 | ||
ConfigEntityNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes/denormalizes Drupal config entity objects into an array structure. | 1 | 1 | 2 | |
ConfigEntityQueryType | final class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
Type used to represent an entity query instance for config entity query. | 3 | |||
ConfigEntityStorage | class | Drupal\Core\Config\Entity | core/ |
Defines the storage class for configuration entities. | 8 | 12 | ||
ConfigEntityStorageClassException | class | Drupal\Core\Config\Entity\Exception | core/ |
Thrown when a storage class is not an instance of ConfigEntityStorage. | 1 |