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 |
---|---|---|---|---|---|---|---|
ContainerAwareEventDispatcher Deprecated | class |
Drupal\ |
core/ |
A performance optimized container aware event dispatcher. | 1 | ||
Event | class |
Drupal\ |
core/ |
Provides a forward-compatibility layer for the Symfony 5 event class. | 25 | 29 | |
ApcuFileCacheBackend | class |
Drupal\ |
core/ |
APCu backend for the file cache. | |||
FileCache | class |
Drupal\ |
core/ |
Allows to cache data based on file modification dates. | 1 | 2 | |
FileCacheBackendInterface | interface |
Drupal\ |
core/ |
Defines an interface inspired by APCu for FileCache backends. | 2 | 1 | |
FileCacheFactory | class |
Drupal\ |
core/ |
Creates a FileCache object. | 21 | ||
FileCacheInterface | interface |
Drupal\ |
core/ |
Interface for objects that allow caching file data. | 2 | ||
NullFileCache | class |
Drupal\ |
core/ |
Null implementation for the file cache. | 1 | ||
FileSecurity | class |
Drupal\ |
core/ |
Provides file security functions. | 5 | ||
FileSystem | class |
Drupal\ |
core/ |
Provides file system functions. | 4 | ||
RegexDirectoryIterator | class |
Drupal\ |
core/ |
Iterates over files whose names match a regular expression in a directory. | 3 | ||
FrontMatter | class |
Drupal\ |
core/ |
Component for parsing front matter from a source. | 5 | ||
FrontMatterParseException | class |
Drupal\ |
core/ |
Defines a class for front matter parsing exceptions. | 3 | ||
PoHeader | class |
Drupal\ |
core/ |
Gettext PO header handler. | 5 | ||
PoItem | class |
Drupal\ |
core/ |
PoItem handles one translation. | 15 | ||
PoMemoryWriter | class |
Drupal\ |
core/ |
Defines a Gettext PO memory writer, to be used by the installer. | 1 | ||
PoMetadataInterface | interface |
Drupal\ |
core/ |
Methods required for both reader and writer implementations. | 2 | ||
PoReaderInterface | interface |
Drupal\ |
core/ |
Shared interface definition for all Gettext PO Readers. | 2 | 2 | |
PoStreamInterface | interface |
Drupal\ |
core/ |
Common functions for file/stream based PO readers/writers. | 2 | ||
PoStreamReader | class |
Drupal\ |
core/ |
Implements Gettext PO stream reader. | 2 | ||
PoStreamWriter | class |
Drupal\ |
core/ |
Defines a Gettext PO stream writer. | 2 | ||
PoWriterInterface | interface |
Drupal\ |
core/ |
Shared interface definition for all Gettext PO Writers. | 3 | 1 | |
Graph | class |
Drupal\ |
core/ |
Directed acyclic graph manipulation. | 6 | ||
FileReadOnlyStorage | class |
Drupal\ |
core/ |
Reads code as regular PHP files, but won't write them. | 1 | ||
FileStorage | class |
Drupal\ |
core/ |
Stores the code as regular PHP files. | 1 | 2 | |
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 | |
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 | |
ContextAwarePluginInterface | interface |
Drupal\ |
core/ |
Interface for defining context aware plugins. | 1 | 1 | |
DependentPluginInterface | interface |
Drupal\ |
core/ |
Provides an interface for a plugin that has dependencies. | 18 | 20 | |
DerivativeInspectionInterface | interface |
Drupal\ |
core/ |
Provides a plugin interface for providing derivative metadata inspection. | 7 | 10 | |
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 | |
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 | |
AttributeInterface | interface |
Drupal\ |
core/ |
Defines a common interface for classed attributes. | 1 | ||
PluginID | class |
Drupal\ |
core/ |
6 | 9 | ||
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 | |
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 |