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 |
---|---|---|---|---|---|---|---|
EntityActionDeriverBase | abstract class |
Drupal\ |
core/ |
Provides a base action for each entity type with specific interfaces. | 3 | ||
FieldInstance | class |
Drupal\ |
core/ |
Drupal 7 field instances source from database. | 3 | 1 | |
Tasks | class |
Drupal\ |
core/ |
Specifies installation tasks for PostgreSQL databases. | 3 | 3 | |
EntityTestMul | class |
Drupal\ |
core/ |
Defines the test entity class. | 3 | 9 | |
MigrateDrupalTestBase | abstract class |
Drupal\ |
core/ |
Base class for Tracker Drupal 7 migration tests. | 3 | ||
TermTest | class |
Drupal\ |
core/ |
Tests taxonomy term source plugin. | 3 | ||
MediaTestBase | abstract class |
Drupal\ |
core/ |
Base class for CKEditor 5 Media integration tests. | 3 | ||
ConfigTranslationUiTestBase | abstract class |
Drupal\ |
core/ |
Translate settings and entities to various languages. | 3 | ||
SectionStorageInterface | interface |
Drupal\ |
core/ |
Defines an interface for Section Storage type plugins. | 3 | 34 | |
MediaSourceInterface | interface |
Drupal\ |
core/ |
Defines the interface for media source plugins. | 3 | 1 | 1 |
TestSetupInterface | interface |
Drupal\ |
core/ |
Allows setting up an environment as part of a test site install. | 3 | ||
AnnotationInterface | interface |
Drupal\ |
core/ |
Defines a common interface for classed annotations. | 3 | 4 | |
PoWriterInterface | interface |
Drupal\ |
core/ |
Shared interface definition for all Gettext PO Writers. | 3 | 1 | |
UuidInterface | interface |
Drupal\ |
core/ |
Interface for generating UUIDs. | 3 | 11 | |
AccessResultInterface | interface |
Drupal\ |
core/ |
Interface for access result value objects. | 3 | 14 | |
CommandWithAttachedAssetsInterface | interface |
Drupal\ |
core/ |
Interface for Ajax commands that render content and attach assets. | 3 | ||
AssetCollectionOptimizerInterface | interface |
Drupal\ |
core/ |
Interface defining a service that optimizes a collection of assets. | 3 | 1 | |
CacheCollectorInterface | interface |
Drupal\ |
core/ |
Provides a caching wrapper to be used in place of large structures. | 3 | 2 | |
VariantInterface | interface |
Drupal\ |
core/ |
Provides an interface for DisplayVariant plugins. | 3 | ||
EntityDescriptionInterface | interface |
Drupal\ |
core/ |
Defines the interface for entities that have a description. | 3 | 3 | |
EntityTypeInterface | interface |
Drupal\ |
core/ |
Provides an interface for an entity type and its metadata. | 3 | 199 | |
ExecutableInterface | interface |
Drupal\ |
core/ |
An interface for executable plugins. | 3 | 3 | |
ConfigImportModuleUninstallValidatorInterface | interface |
Drupal\ |
core/ |
Special interface for module uninstall validators for configuration import. | 3 | 1 | |
FieldStorageDefinitionInterface | interface |
Drupal\ |
core/ |
Defines an interface for entity field storage definitions. | 3 | 110 | |
PluginSettingsInterface | interface |
Drupal\ |
core/ |
Interface definition for plugin with settings. | 3 | 1 | |
ConfirmFormInterface | interface |
Drupal\ |
core/ |
Defines the behavior a confirmation form. | 3 | 2 | |
KeyValueFactoryInterface | interface |
Drupal\ |
core/ |
Defines the key/value store factory interface. | 3 | 11 | |
PluginWithFormsInterface | interface |
Drupal\ |
core/ |
Provides an interface for plugins which have forms. | 3 | 10 | |
QueueInterface | interface |
Drupal\ |
core/ |
Interface for a queue. | 3 | 1 | |
OutboundRouteProcessorInterface | interface |
Drupal\ |
core/ |
Defines an interface for classes that process the outbound route. | 3 | 1 | |
RouteMatchInterface | interface |
Drupal\ |
core/ |
Provides an interface for classes representing the result of routing. | 3 | 192 | |
RouteProviderInterface | interface |
Drupal\ |
core/ |
Defines the route provider interface. | 3 | 21 | |
ComplexDataDefinitionInterface | interface |
Drupal\ |
core/ |
Interface for complex data definitions. | 3 | 8 | |
TraversableTypedDataInterface | interface |
Drupal\ |
core/ |
An interface for typed data objects that can be traversed. | 3 | 3 | |
TypedDataInterface | interface |
Drupal\ |
core/ |
Interface for typed data objects. | 3 | 21 | |
ResourceIdentifierInterface | interface |
Drupal\ |
core/ |
An interface for identifying a related resource. | 3 | 2 | |
EntityResolverInterface | interface |
Drupal\ |
core/ |
3 | |||
CachedDiscoveryInterface | interface |
Drupal\ |
core/ |
Interface for discovery components holding a cache of plugin definitions. | 3 | 4 | |
PlaceholderInterface | interface |
Drupal\ |
core/ |
Interface for a query that accepts placeholders. | 3 | 2 | |
QueryFactoryInterface | interface |
Drupal\ |
core/ |
Defines an interface for QueryFactory classes. | 3 | 5 | |
RenderCallbackInterface | interface |
Drupal\ |
core/ |
Indicates all public methods are safe to use in render callbacks. | 3 | 2 | |
MainContentRendererInterface | interface |
Drupal\ |
core/ |
The interface for "main content" ( | 3 | 2 | |
PlaceholderStrategyInterface | interface |
Drupal\ |
core/ |
Provides an interface for defining a placeholder strategy service. | 3 | 2 | |
TranslatorInterface | interface |
Drupal\ |
core/ |
Interface for objects capable of string translation. | 3 | 3 | |
DateSqlInterface | interface |
Drupal\ |
core/ |
Defines an interface for handling date queries with SQL. | 3 | 1 | |
FilterOperatorsInterface | interface |
Drupal\ |
core/ |
Provides an interface for all views filters that implement operators. | 3 | ||
GeneratedLink | class |
Drupal\ |
core/ |
Used to return generated links, along with associated cacheability metadata. | 2 | 4 | |
ConfigEntityMapper | class |
Drupal\ |
core/ |
Configuration mapper for configuration entities. | 2 | 2 | |
ConfigNamesMapper | class |
Drupal\ |
core/ |
Configuration mapper base implementation. | 2 | 1 | |
StringBase | abstract class |
Drupal\ |
core/ |
Defines the locale string base class. | 2 |