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 |
---|---|---|---|---|---|---|---|---|
ContextBuilderInterface | interface | Symfony\Component\Serializer\Context | vendor/ |
Common interface for context builders. | 14 | 13 | ||
ContextBuilderTrait | trait | Symfony\Component\Serializer\Context | vendor/ |
@author Mathias Arlaud <mathias.arlaud@gmail.com> | 13 | |||
ContextCacheKeys | class | Drupal\Core\Cache\Context | core/ |
A value object to store generated cache keys with its cacheability metadata. | ||||
ContextDefinition | class | Drupal\Core\Annotation | core/ |
Defines a context definition annotation object. | ||||
ContextDefinition | class | Drupal\Core\Plugin\Context | core/ |
Defines a class for context definitions. | 1 | 14 | ||
ContextDefinitionInterface | interface | Drupal\Component\Plugin\Context | core/ |
Interface used to define definition objects found in ContextInterface. | 1 | 3 | ||
ContextDefinitionInterface | interface | Drupal\Core\Plugin\Context | core/ |
Interface to define definition objects in ContextInterface via TypedData. | 1 | |||
ContextException | class | Drupal\Component\Plugin\Exception | core/ |
An exception class to be thrown for context plugin exceptions. | 1 | 8 | ||
ContextFactory | final class | phpDocumentor\Reflection\Types | vendor/ |
Convenience class to create a Context for DocBlocks when not using the Reflection Component of phpDocumentor. | 1 | |||
ContextHandler | class | Drupal\Core\Plugin\Context | core/ |
Provides methods to handle sets of contexts. | ||||
ContextHandlerInterface | interface | Drupal\Core\Plugin\Context | core/ |
Provides an interface for handling sets of contexts. | 1 | 3 | ||
ContextInterface | interface | Drupal\Component\Plugin\Context | core/ |
Provides data and definitions for plugins during runtime and administration. | 2 | 5 | ||
ContextInterface | interface | Drupal\Core\Plugin\Context | core/ |
Context data and definitions for plugins supporting caching and return docs. | 1 | 3 | ||
ContextInterface | interface | OpenTelemetry\Context | vendor/ |
Immutable execution scoped propagation mechanism. | 1 | 60 | ||
ContextKey | final class | OpenTelemetry\Context | vendor/ |
@internal @psalm-suppress MissingTemplateParam | ||||
ContextKeyInterface | interface | OpenTelemetry\Context | vendor/ |
@template-covariant T | 1 | 3 | ||
ContextKeys | final class | OpenTelemetry\API\Instrumentation | vendor/ |
@internal | 1 | |||
ContextKeys | final class | OpenTelemetry\Context | vendor/ |
@psalm-internal OpenTelemetry | 2 | |||
ContextProviderInterface | interface | Drupal\Core\Plugin\Context | core/ |
Defines an interface for providing plugin contexts. | 4 | 4 | ||
ContextProviderInterface | interface | Symfony\Component\VarDumper\Dumper\ContextProvider | vendor/ |
Interface to provide contextual data about dump data clones sent to a server. | 3 | 3 | ||
ContextRepositoryInterface | interface | Drupal\Core\Plugin\Context | core/ |
Offers a global context repository. | 1 | 5 | ||
ContextStorage | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
ContextStorageHead | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
ContextStorageHeadAware | interface | OpenTelemetry\Context | vendor/ |
@internal | 2 | |||
ContextStorageInterface | interface | OpenTelemetry\Context | vendor/ |
3 | 3 | |||
ContextStorageNode | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
ContextStorageScopeInterface | interface | OpenTelemetry\Context | vendor/ |
@psalm-suppress MissingTemplateParam | 1 | |||
ContextualController | class | Drupal\contextual | core/ |
Returns responses for Contextual module routes. | ||||
ContextualHooks | class | Drupal\contextual\Hook | core/ |
Hook implementations for contextual. | ||||
ContextualizedDumper | class | Symfony\Component\VarDumper\Dumper | vendor/ |
@author Kévin Thérage <therage.kevin@gmail.com> | 1 | |||
ContextualLinkDefault | class | Drupal\Core\Menu | core/ |
Provides a common base implementation of a contextual link. | 1 | 1 | ||
ContextualLinkInterface | interface | Drupal\Core\Menu | core/ |
Defines a contextual link plugin. | 1 | |||
ContextualLinkManager | class | Drupal\Core\Menu | core/ |
Defines a contextual link plugin manager to deal with contextual links. | ||||
ContextualLinkManagerInterface | interface | Drupal\Core\Menu | core/ |
Provides an object which returns the available contextual links. | 1 | |||
ContextualLinks | class | Drupal\contextual\Plugin\views\field | core/ |
Provides a handler that adds contextual links. | ||||
ContextualLinks | class | Drupal\contextual\Element | core/ |
Provides a contextual_links element. | ||||
ContextualLinksPlaceholder | class | Drupal\contextual\Element | core/ |
Provides a contextual_links_placeholder element. | ||||
ContextualValidatorInterface | interface | Drupal\Core\TypedData\Validation | core/ |
Extends the contextual validator validate method by a new parameter. | 1 | |||
ContextualValidatorInterface | interface | Symfony\Component\Validator\Validator | vendor/ |
A validator in a specific execution context. | 3 | 3 | ||
ContextualViewsHooks | class | Drupal\contextual\Hook | core/ |
Hook implementations for contextual. | ||||
ContextVariable | final class | Twig\Node\Expression\Variable | vendor/ |
3 | ||||
ContinueStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents the "continue" statement inside loops. | ||||
Continue_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
ControllerArgumentsEvent | final class | Symfony\Component\HttpKernel\Event | vendor/ |
Allows filtering of controller arguments. | 5 | |||
ControllerArgumentValueResolverPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Gathers and configures the argument value resolvers. | ||||
ControllerBase | abstract class | Drupal\Core\Controller | core/ |
Utility base class for thin controllers. | 49 | 49 | ||
ControllerDoesNotReturnResponseException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Grégoire Pineau <lyrixx@lyrixx.info> | 1 | |||
ControllerEvent | final class | Symfony\Component\HttpKernel\Event | vendor/ |
Allows filtering of a controller callable. | 6 | |||
ControllerReference | class | Symfony\Component\HttpKernel\Controller | vendor/ |
Acts as a marker and a data holder for a Controller. | 9 | |||
ControllerResolver | class | Symfony\Component\HttpKernel\Controller | vendor/ |
This implementation uses the '_controller' request attribute to determine the controller to execute. | 1 |