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

Pages

Other projects