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 |
---|---|---|---|---|---|---|---|---|
ContainerControllerResolver | class | Symfony\Component\HttpKernel\Controller | vendor/ |
A controller resolver searching for a controller in a psr-11 container when using the "service::method" notation. | ||||
ContainerDerivativeDiscoveryDecorator | class | Drupal\Core\Plugin\Discovery | core/ |
Injects dependencies into derivers if they use ContainerDeriverInterface. | 13 | |||
ContainerDeriverInterface | interface | Drupal\Core\Plugin\Discovery | core/ |
Creates additional plugin definitions. | 45 | 45 | ||
ContainerDynamicReturnTypeExtension | class | mglaman\PHPStanDrupal\Type | vendor/ |
|||||
ContainerExceptionInterface | interface | Psr\Container | vendor/ |
Base interface representing a generic exception in a container. | 2 | 4 | ||
ContainerFactory | class | Drupal\Core\Plugin\Factory | core/ |
Plugin factory which passes a container to a create method. | 1 | 11 | ||
ContainerFactoryPluginInterface | interface | Drupal\Core\Plugin | core/ |
Defines an interface for pulling plugin dependencies from the container. | 134 | 135 | ||
ContainerInjectionInterface | interface | Drupal\Core\DependencyInjection | core/ |
Defines a common interface for dependency container injection. | 98 | 98 | ||
ContainerInterface | interface | Drupal\Component\DependencyInjection | core/ |
The interface for Drupal service container classes. | 2 | 1 | ||
ContainerInterface | interface | Symfony\Component\DependencyInjection | vendor/ |
ContainerInterface is the interface implemented by service container classes. | 3 | 630 | ||
ContainerInterface | interface | Psr\Container | vendor/ |
Describes the interface of a container that exposes methods to read its entries. | 3 | 28 | ||
ContainerLoader | class | Symfony\Component\Routing\Loader | vendor/ |
A route loader that executes a service from a PSR-11 container to load the routes. | ||||
ContainerNotInitializedException | class | Drupal\Core\DependencyInjection | core/ |
Exception, thrown when a method is called on a non-initialized container. | 2 | |||
ContainerParametersResource | class | Symfony\Component\DependencyInjection\Config | vendor/ |
Tracks container parameters. | ||||
ContainerParametersResourceChecker | class | Symfony\Component\DependencyInjection\Config | vendor/ |
@author Maxime Steinhausser <maxime.steinhausser@gmail.com> | ||||
ContainerRuntimeLoader | class | Twig\RuntimeLoader | vendor/ |
Lazily loads Twig runtime implementations from a PSR-11 container. | ||||
ContainsElement | class | PharIo\Manifest | vendor/ |
|||||
ContentDispositionFilenameParser | final class | Drupal\file\Upload | core/ |
Parses the content-disposition header to extract the client filename. | 2 | |||
ContentEncoderInterface | interface | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 3 | 1 | ||
ContentEntity | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Source plugin to get content entities from the current version of Drupal. | ||||
ContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Implements Entity Field API specific enhancements to the Entity class. | 10 | 8 | ||
ContentEntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 2 | 1 | ||
ContentEntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for a content entity deletion form. | 8 | 11 | ||
ContentEntityDenormalizer | final class | Drupal\jsonapi\Normalizer | core/ |
Converts a JSON:API array structure into a Drupal entity object. | 2 | |||
ContentEntityDeriver | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Deriver for content entity source plugins. | ||||
ContentEntityForm | class | Drupal\Core\Entity | core/ |
Entity form variant for content entity types. | 13 | 12 | ||
ContentEntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for content entity form classes. | 1 | 4 | ||
ContentEntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all content entity objects. | 14 | 55 | 1 | |
ContentEntityNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes/denormalizes Drupal content entities into an array structure. | 2 | |||
ContentEntityNullStorage | class | Drupal\Core\Entity | core/ |
Defines a null entity storage. | 2 | |||
ContentEntityQueryType | final class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
Type used to represent an entity query instance for content entity query. | 2 | |||
ContentEntityStorageBase | abstract class | Drupal\Core\Entity | core/ |
Base class for content entity storage handlers. | 2 | 1 | ||
ContentEntityStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports content entity types. | 8 | 15 | ||
ContentEntityStorageType | final class | mglaman\PHPStanDrupal\Type\EntityStorage | vendor/ |
1 | ||||
ContentEntityType | class | Drupal\Core\Entity\Attribute | core/ |
Defines a content entity type for plugin discovery. | 13 | |||
ContentEntityType | class | Drupal\Core\Entity\Annotation | core/ |
Defines a content entity type annotation object. | ||||
ContentEntityType | class | Drupal\Core\Entity | core/ |
Provides an implementation of a content entity type and its metadata. | 1 | |||
ContentEntityTypeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for a content entity type and its metadata. | 1 | 17 | ||
ContentLanguageSettings | class | Drupal\language\Entity | core/ |
Defines the ContentLanguageSettings entity. | 10 | |||
ContentLanguageSettingsException | class | Drupal\language | core/ |
Exception thrown by ContentLanguageSettings when target bundle is not set. | 1 | |||
ContentLanguageSettingsForm | class | Drupal\language\Form | core/ |
Configure the content language settings for this site. | 1 | |||
ContentLanguageSettingsInterface | interface | Drupal\language | core/ |
Provides an interface defining language settings for content entities. | 1 | 2 | ||
ContentLength | class | Drupal\Core\StackMiddleware | core/ |
Adds a Content-Length HTTP header to responses. | ||||
ContentLength | final class | Drupal\big_pipe\StackMiddleware | core/ |
Defines a big pipe middleware that removes Content-Length headers. | 2 | |||
ContentModeration | class | Drupal\content_moderation\Plugin\WorkflowType | core/ |
Attaches workflows to content entity types and their bundles. | ||||
ContentModerationConfigureEntityTypesForm | class | Drupal\content_moderation\Form | core/ |
The form for editing entity types associated with a workflow. | 1 | |||
ContentModerationConfigureForm | class | Drupal\content_moderation\Form | core/ |
The content moderation WorkflowType configuration form. | ||||
ContentModerationHooks | class | Drupal\content_moderation\Hook | core/ |
Hook implementations for content_moderation. | ||||
ContentModerationInterface | interface | Drupal\content_moderation\Plugin\WorkflowType | core/ |
Interface for ContentModeration WorkflowType plugin. | 1 | 1 | ||
ContentModerationRouteSubscriber | class | Drupal\content_moderation\Routing | core/ |
Subscriber for moderated revisionable entity forms. | 2 |