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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
MTimeProtectedFastFileStorage | class |
Drupal\ |
core/ |
Stores PHP code in files with securely hashed names. | 1 | ||
MTimeProtectedFileStorage | class |
Drupal\ |
core/ |
Stores PHP code in files with securely hashed names. | 1 | ||
PhpStorageInterface | interface |
Drupal\ |
core/ |
Stores and loads PHP code. | 2 | 1 | |
AttributeInterface | interface |
Drupal\ |
core/ |
Defines a common interface for classed attributes. | 1 | ||
PluginID | class |
Drupal\ |
core/ |
6 | 9 | ||
CategorizingPluginManagerInterface | interface |
Drupal\ |
core/ |
Defines an interface for plugin managers that categorize plugin definitions. | 6 | 6 | |
ConfigurableInterface | interface |
Drupal\ |
core/ |
Provides an interface for a configurable plugin. | 16 | 23 | |
Context | class |
Drupal\ |
core/ |
A generic context class for wrapping data a plugin needs to operate. | 1 | 2 | |
ContextDefinitionInterface | interface |
Drupal\ |
core/ |
Interface used to define definition objects found in ContextInterface. | 1 | 4 | |
ContextInterface | interface |
Drupal\ |
core/ |
Provides data and definitions for plugins during runtime and administration. | 2 | 7 | |
ContextAwarePluginInterface | interface |
Drupal\ |
core/ |
Interface for defining context aware plugins. | 1 | 1 | |
ContextAwarePluginDefinitionInterface | interface |
Drupal\ |
core/ |
Provides an interface for plugin definitions which use contexts. | 4 | 6 | |
ContextAwarePluginDefinitionTrait | trait |
Drupal\ |
core/ |
Provides a trait for context-aware object-based plugin definitions. | 4 | ||
DerivablePluginDefinitionInterface | interface |
Drupal\ |
core/ |
Provides an interface for a derivable plugin definition. | 2 | 3 | |
PluginDefinition | class |
Drupal\ |
core/ |
8 | 8 | ||
PluginDefinitionInterface | interface |
Drupal\ |
core/ |
Defines a plugin definition. | 6 | 7 | |
DependentPluginInterface | interface |
Drupal\ |
core/ |
Provides an interface for a plugin that has dependencies. | 18 | 20 | |
DeriverBase | abstract class |
Drupal\ |
core/ |
Provides a basic deriver. | 38 | 38 | |
DeriverInterface | interface |
Drupal\ |
core/ |
Provides additional plugin definitions based on an existing definition. | 7 | 6 | |
DerivativeInspectionInterface | interface |
Drupal\ |
core/ |
Provides a plugin interface for providing derivative metadata inspection. | 7 | 10 | |
CachedDiscoveryInterface | interface |
Drupal\ |
core/ |
Interface for discovery components holding a cache of plugin definitions. | 3 | 4 | |
DerivativeDiscoveryDecorator | class |
Drupal\ |
core/ |
Base class providing the tools for a plugin discovery to be derivative aware. | 1 | 2 | |
DiscoveryCachedTrait | trait |
Drupal\ |
core/ |
1 | |||
DiscoveryInterface | interface |
Drupal\ |
core/ |
Defines the minimum requirements for a plugin discovery component. | 15 | 23 | |
DiscoveryTrait | trait |
Drupal\ |
core/ |
11 | |||
StaticDiscovery | class |
Drupal\ |
core/ |
Allows plugin definitions to be manually registered. | 2 | 6 | |
StaticDiscoveryDecorator | class |
Drupal\ |
core/ |
A decorator that allows manual registration of undiscoverable definitions. | 2 | ||
ContextException | class |
Drupal\ |
core/ |
An exception class to be thrown for context plugin exceptions. | 1 | 12 | |
ExceptionInterface | interface |
Drupal\ |
core/ |
Exception interface for all exceptions thrown by the Plugin component. | 5 | 2 | |
InvalidDecoratedMethod | class |
Drupal\ |
core/ |
Thrown when a decorator's _call() method uses a method that does not exist. | |||
InvalidDeriverException | class |
Drupal\ |
core/ |
Exception to be thrown if a plugin tries to use an invalid deriver. | 1 | ||
InvalidPluginDefinitionException | class |
Drupal\ |
core/ |
Defines a class for invalid plugin definition exceptions. | 1 | 15 | |
MapperExceptionInterface | interface |
Drupal\ |
core/ |
Base exception interface for grouping mapper exceptions. | |||
MissingValueContextException | class |
Drupal\ |
core/ |
An exception class thrown when contexts exist but are missing a value. | 3 | ||
PluginException | class |
Drupal\ |
core/ |
Base class for plugin exceptions. | 3 | 19 | |
PluginNotFoundException | class |
Drupal\ |
core/ |
Plugin exception class to be thrown when a plugin ID could not be found. | 38 | ||
DefaultFactory | class |
Drupal\ |
core/ |
Default plugin factory. | 2 | 10 | |
FactoryInterface | interface |
Drupal\ |
core/ |
Factory interface implemented by all plugin factories. | 2 | 3 | |
ReflectionFactory | class |
Drupal\ |
core/ |
A plugin factory that maps instance configuration to constructor arguments. | 1 | 2 | |
FallbackPluginManagerInterface | interface |
Drupal\ |
core/ |
An interface implemented by plugin managers with fallback plugin behaviors. | 5 | 7 | |
LazyPluginCollection | abstract class |
Drupal\ |
core/ |
Defines an object which stores multiple plugin instances to lazy load them. | 3 | 3 | |
MapperInterface | interface |
Drupal\ |
core/ |
Plugin mapper interface. | 1 | 3 | |
PluginAwareInterface | interface |
Drupal\ |
core/ |
Provides an interface for objects that depend on a plugin. | 4 | 6 | |
PluginBase | abstract class |
Drupal\ |
core/ |
Base class for plugins wishing to support metadata inspection. | 12 | 20 | |
PluginHelper Deprecated | class |
Drupal\ |
core/ |
A helper class to determine if a plugin is configurable. | 1 | ||
PluginInspectionInterface | interface |
Drupal\ |
core/ |
Plugin interface for providing some metadata inspection. | 32 | 40 | |
PluginManagerBase | abstract class |
Drupal\ |
core/ |
Base class for plugin managers. | 5 | 8 | |
PluginManagerInterface | interface |
Drupal\ |
core/ |
Interface implemented by plugin managers. | 19 | 39 | |
ProxyBuilder | class |
Drupal\ |
core/ |
Generates the string representation of the proxy service. | 1 | 5 | |
FormattableMarkup | class |
Drupal\ |
core/ |
Formats a string for HTML display by replacing variable placeholders. | 1 | 82 |