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 |
---|---|---|---|---|---|---|---|
PluginID | class |
Drupal\ |
core/ |
6 | 9 | ||
MigrateLookupInterface | interface |
Drupal\ |
core/ |
Provides an interface for the migration lookup service. | 1 | 9 | |
PluginFormFactoryInterface | interface |
Drupal\ |
core/ |
Provides an interface for retrieving form objects for plugins. | 1 | 9 | |
AttachmentsInterface | interface |
Drupal\ |
core/ |
Defines an interface for responses that can expose #attached metadata. | 4 | 9 | |
EnhancerInterface | interface |
Drupal\ |
core/ |
A route enhance service to determine route enhance rules. | 8 | 9 | |
PrimitiveInterface | interface |
Drupal\ |
core/ |
Interface for primitive data. | 8 | 9 | |
CKEditor5PluginConfigurableInterface | interface |
Drupal\ |
core/ |
Defines an interface for configurable CKEditor 5 plugins. | 10 | 9 | |
WorkspaceDynamicSafeFormInterface | interface |
Drupal\ |
core/ |
Defines an interface for forms that can be workspace-safe. | 8 | 9 | |
ContextAwarePluginTrait | trait |
Drupal\ |
core/ |
Provides a trait to add context-aware functionality to plugins. | 9 | ||
StubTestTrait | trait |
Drupal\ |
core/ |
Provides common functionality for testing stubbing. | 9 | ||
PhpUnitWarnings | trait |
Drupal\ |
core/ |
Converts deprecation warnings added by PHPUnit to silenced deprecations. | 9 | ||
ScaffoldOptions | class |
Drupal\ |
composer/ |
Per-project options from the 'extras' section of the composer.json file. | 8 | ||
State | class |
Drupal\ |
core/ |
A value object representing a workflow state. | 8 | ||
PluginManagerBase | abstract class |
Drupal\ |
core/ |
Base class for plugin managers. | 5 | 8 | |
Environment | class |
Drupal\ |
core/ |
Provides PHP environment helper methods. | 8 | ||
Variable | class |
Drupal\ |
core/ |
Provides helpers for dealing with variables. | 8 | ||
ReplaceCommand | class |
Drupal\ |
core/ |
AJAX command for calling the jQuery replace() method. | 8 | ||
ImmutableConfig | class |
Drupal\ |
core/ |
Defines the immutable configuration object. | 8 | ||
IntegrityConstraintViolationException | class |
Drupal\ |
core/ |
Exception thrown if a query would violate an integrity constraint. | 8 | ||
FieldException | class |
Drupal\ |
core/ |
Base class for all exceptions thrown by the Entity Field API functions. | 1 | 8 | |
FieldItemBase | abstract class |
Drupal\ |
core/ |
An entity field item. | 6 | 8 | |
DefaultLazyPluginCollection | class |
Drupal\ |
core/ |
Provides a default plugin collection for a plugin type. | 6 | 8 | |
PrivateTempStoreFactory | class |
Drupal\ |
core/ |
Creates a PrivateTempStore object for a given collection. | 8 | 2 | |
SectionStorageDefinition | class |
Drupal\ |
core/ |
Provides section storage type plugin definition. | 8 | ||
Shortcut | class |
Drupal\ |
core/ |
Defines the shortcut entity class. | 8 | ||
PluginDefinition | class |
Drupal\ |
core/ |
8 | 8 | ||
AnnotatedClassDiscovery | class |
Drupal\ |
core/ |
Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. | 1 | 8 | |
ContentTranslationUITestBase | abstract class |
Drupal\ |
core/ |
Tests the Content Translation UI. | 9 | 8 | |
DriverSpecificDatabaseTestBase | abstract class |
Drupal\ |
core/ |
Base class for driver specific database tests. | 10 | 8 | |
EntityContentBase | class |
Drupal\ |
core/ |
Provides destination class for all content entities lacking a specific class. | 5 | 8 | |
MigrateProcessTestCase | abstract class |
Drupal\ |
core/ |
27 | 8 | ||
Connection | class |
Drupal\ |
core/ |
MySQL implementation of \Drupal\Core\Database\Connection. | 4 | 8 | |
Connection | class |
Drupal\ |
core/ |
SQLite implementation of \Drupal\Core\Database\Connection. | 2 | 8 | |
CachePluginBase | abstract class |
Drupal\ |
core/ |
The base plugin to handle caching. | 8 | ||
FieldableEntity | abstract class |
Drupal\ |
core/ |
Base class for D7 source plugins which need to collect field values. | 8 | 8 | |
ViewsSort | class |
Drupal\ |
core/ |
8 | |||
BlockContentInterface | interface |
Drupal\ |
core/ |
Provides an interface defining a content block entity. | 1 | 8 | |
ConfigMapperManagerInterface | interface |
Drupal\ |
core/ |
Provides a common interface for config mapper managers. | 8 | ||
MediaTypeInterface | interface |
Drupal\ |
core/ |
Provides an interface defining a media type entity. | 1 | 8 | |
FieldDiscoveryInterface | interface |
Drupal\ |
core/ |
Provides field discovery for Drupal 6 & 7 migrations. | 1 | 8 | |
NodeTypeInterface | interface |
Drupal\ |
core/ |
Provides an interface defining a node type entity. | 1 | 8 | |
WorkspaceInterface | interface |
Drupal\ |
core/ |
Defines an interface for the workspace entity type. | 1 | 8 | |
WorkspaceManagerInterface | interface |
Drupal\ |
core/ |
Provides an interface for managing Workspaces. | 8 | ||
BlockManagerInterface | interface |
Drupal\ |
core/ |
Provides an interface for the discovery and instantiation of block plugins. | 1 | 8 | |
ConfigFactoryOverrideInterface | interface |
Drupal\ |
core/ |
Defines the interface for a configuration factory override object. | 8 | 8 | |
LayoutPluginManagerInterface | interface |
Drupal\ |
core/ |
Provides the interface for a plugin manager of layouts. | 1 | 8 | |
MenuLinkManagerInterface | interface |
Drupal\ |
core/ |
Defines an interface for managing menu links and storing their definitions. | 1 | 8 | |
RedirectDestinationInterface | interface |
Drupal\ |
core/ |
Provides an interface for redirect destinations. | 1 | 8 | |
ThemeNegotiatorInterface | interface |
Drupal\ |
core/ |
Defines an interface for classes which determine the active theme. | 10 | 8 | |
ComplexDataDefinitionInterface | interface |
Drupal\ |
core/ |
Interface for complex data definitions. | 3 | 8 |