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 |
---|---|---|---|---|---|---|---|---|
ContentModerationState | class | Drupal\content_moderation | core/ |
A value object representing a workflow state for content moderation. | 2 | |||
ContentModerationState | class | Drupal\content_moderation\Entity | core/ |
Defines the Content moderation state entity. | 1 | |||
ContentModerationStateAccessControlHandler | class | Drupal\content_moderation | core/ |
The access control handler for the content_moderation_state entity type. | 1 | |||
ContentModerationStateForm | class | Drupal\content_moderation\Form | core/ |
The content moderation state form. | ||||
ContentModerationStateFormatter | class | Drupal\content_moderation\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'content_moderation_state' formatter. | ||||
ContentModerationStateInterface | interface | Drupal\content_moderation\Entity | core/ |
An interface for Content moderation state entity. | 1 | 1 | ||
ContentModerationStateStorageSchema | class | Drupal\content_moderation | core/ |
Defines the content moderation state schema handler. | 1 | |||
ContentModerationViewsExecutionHooks | class | Drupal\content_moderation\Hook | core/ |
Hook implementations for content_moderation. | ||||
ContentModerationViewsHooks | class | Drupal\content_moderation\Hook | core/ |
Hook implementations for content_moderation. | ||||
ContentPreprocess | class | Drupal\content_moderation | core/ |
Determines whether a route is the "Latest version" tab of a node. | 1 | |||
ContentTranslationContextualLinks | class | Drupal\content_translation\Plugin\Derivative | core/ |
Provides dynamic contextual links for content translation. | 1 | |||
ContentTranslationController | class | Drupal\content_translation\Controller | core/ |
Base class for entity translation controllers. | ||||
ContentTranslationDeleteAccess | class | Drupal\content_translation\Access | core/ |
Access check for entity translation deletion. | 2 | |||
ContentTranslationDeleteForm | class | Drupal\content_translation\Form | core/ |
Delete translation form for content_translation module. | ||||
ContentTranslationEnabledSetting | class | Drupal\language\Plugin\migrate\process | core/ |
Determines the content translation setting. | ||||
ContentTranslationHandler | class | Drupal\content_translation | core/ |
Base class for content translation handlers. | 5 | 5 | ||
ContentTranslationHandlerInterface | interface | Drupal\content_translation | core/ |
Interface for providing content translation. | 1 | |||
ContentTranslationHooks | class | Drupal\content_translation\Hook | core/ |
Hook implementations for content_translation. | ||||
ContentTranslationLocalTasks | class | Drupal\content_translation\Plugin\Derivative | core/ |
Provides dynamic local tasks for content translation. | 1 | |||
ContentTranslationManageAccessCheck | class | Drupal\content_translation\Access | core/ |
Access check for entity translation CRUD operation. | 2 | |||
ContentTranslationManager | class | Drupal\content_translation | core/ |
Provides common functionality for content translation. | 5 | 2 | ||
ContentTranslationManagerInterface | interface | Drupal\content_translation | core/ |
Provides an interface for common functionality for content translation. | 1 | 6 | ||
ContentTranslationMetadataWrapper | class | Drupal\content_translation | core/ |
Base class for content translation metadata wrappers. | ||||
ContentTranslationMetadataWrapperInterface | interface | Drupal\content_translation | core/ |
Common interface for content translation metadata wrappers. | 1 | |||
ContentTranslationOverviewAccess | class | Drupal\content_translation\Access | core/ |
Access check for entity translation overview. | 2 | |||
ContentTranslationPermissions | class | Drupal\content_translation | core/ |
Provides dynamic permissions for the content_translation module. | ||||
ContentTranslationRouteSubscriber | class | Drupal\content_translation\Routing | core/ |
Subscriber for entity translation routes. | 2 | |||
ContentTranslationSynchronizedFieldsConstraint | class | Drupal\content_translation\Plugin\Validation\Constraint | core/ |
Validation constraint for the entity changed timestamp. | ||||
ContentTranslationSynchronizedFieldsConstraintValidator | class | Drupal\content_translation\Plugin\Validation\Constraint | core/ |
Checks that synchronized fields are handled correctly in pending revisions. | ||||
ContentTypeHeaderMatcher | class | Drupal\Core\Routing | core/ |
Filters routes based on the HTTP Content-type header. | ||||
ContentTypes | interface | OpenTelemetry\Contrib\Otlp | vendor/ |
@todo enum (php >= 8.1) | ||||
ContentUninstallValidator | class | Drupal\Core\Entity | core/ |
Validates module uninstall readiness based on existing content entities. | ||||
Context | class | Symfony\Component\Serializer\Attribute | vendor/ |
@author Maxime Steinhausser <maxime.steinhausser@gmail.com> | 1 | |||
Context | final class | OpenTelemetry\API\Instrumentation\AutoInstrumentation | vendor/ |
Context used for component creation. | 1 | |||
Context | final class | OpenTelemetry\Context | vendor/ |
26 | ||||
Context | class | Drupal\Component\Plugin\Context | core/ |
A generic context class for wrapping data a plugin needs to operate. | 1 | 1 | ||
Context | final class | SebastianBergmann\RecursionContext | vendor/ |
7 | ||||
Context | final class | phpDocumentor\Reflection\Types | vendor/ |
Provides information about the Context in which the DocBlock occurs that receives this context. | 38 | |||
Context | class | Drupal\Core\Plugin\Context | core/ |
A Drupal specific context wrapper class. | 1 | 11 | ||
ContextAwareDecoderInterface | interface | Symfony\Component\Serializer\Encoder | vendor/ |
Adds the support of an extra $context parameter for the supportsDecoding method. | 2 | 1 | ||
ContextAwareEncoderInterface | interface | Symfony\Component\Serializer\Encoder | vendor/ |
Adds the support of an extra $context parameter for the supportsEncoding method. | 2 | 1 | ||
ContextAwarePluginAssignmentTrait | trait | Drupal\Core\Plugin | core/ |
Handles context assignments for context-aware plugins. | 4 | |||
ContextAwarePluginDefinitionInterface | interface | Drupal\Component\Plugin\Definition | core/ |
Provides an interface for plugin definitions which use contexts. | 2 | 4 | ||
ContextAwarePluginDefinitionTrait | trait | Drupal\Component\Plugin\Definition | core/ |
Provides a trait for context-aware object-based plugin definitions. | 2 | |||
ContextAwarePluginInterface | interface | Drupal\Component\Plugin | core/ |
Interface for defining context aware plugins. | 1 | 1 | ||
ContextAwarePluginInterface | interface | Drupal\Core\Plugin | core/ |
An override of ContextAwarePluginInterface for documentation purposes. | 6 | 14 | ||
ContextAwarePluginManagerInterface | interface | Drupal\Core\Plugin\Context | core/ |
Provides an interface for plugin managers that support context-aware plugins. | 1 | 1 | ||
ContextAwarePluginManagerTrait | trait | Drupal\Core\Plugin\Context | core/ |
Provides a trait for plugin managers that support context-aware plugins. | 1 | |||
ContextAwarePluginTrait | trait | Drupal\Core\Plugin | core/ |
Provides a trait to add context-aware functionality to plugins. | 5 | |||
ContextAwareVariantInterface | interface | Drupal\Core\Display | core/ |
Provides an interface for variant plugins that are context-aware. | 1 |