Classes, traits, and interfaces in Drupal 9
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 |
|---|---|---|---|---|---|---|---|
| UploadInstance | class |
Drupal\ |
core/ |
Drupal 6 upload instance source from database. | |||
| UploadInstanceTest | class |
Drupal\ |
core/ |
Tests D6 d6_upload_instance source plugin. | |||
| UploadTest | class |
Drupal\ |
core/ |
Tests D6 d6_upload source plugin. | |||
| Upsert | class |
Drupal\ |
core/ |
MySQL implementation of \Drupal\Core\Database\Query\Upsert. | 2 | 2 | |
| Upsert | abstract class |
Drupal\ |
core/ |
General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. | 4 | 5 | |
| Upsert | class |
Drupal\ |
core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Upsert. | |||
| Upsert | class |
Drupal\ |
core/ |
SQLite implementation of \Drupal\Core\Database\Query\Upsert. | |||
| Upsert | class |
Drupal\ |
core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. | 1 | 1 | |
| Upsert | class |
Drupal\ |
core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Upsert. | |||
| Upsert | class |
Drupal\ |
core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. | |||
| Upsert | class |
Drupal\ |
core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Upsert. | |||
| UpsertTest | class |
Drupal\ |
core/ |
Tests the Upsert query builder. | |||
| Uri | class |
Drupal\ |
core/ |
The URI data type. | 1 | 1 | |
| UriDependentTestImageEffect | class |
Drupal\ |
core/ |
Performs an image operation that depends on the URI of the original image. | |||
| UriInterface | interface |
Drupal\ |
core/ |
Interface for URIs. | 1 | 3 | |
| UriItem | class |
Drupal\ |
core/ |
Defines the 'uri' entity field type. | 1 | 3 | |
| UriItemTest | class |
Drupal\ |
core/ |
Tests URI field functionality. | |||
| UriLinkFormatter | class |
Drupal\ |
core/ |
Plugin implementation of the 'uri_link' formatter. | |||
| UriWidget | class |
Drupal\ |
core/ |
Plugin implementation of the 'uri' widget. | |||
| Url | class |
Drupal\ |
core/ |
Defines an object that holds information about a URL. | 693 | ||
| Url | class |
Drupal\ |
core/ |
Field handler to provide simple renderer that turns a URL into a clickable link. | |||
| Url | class |
Drupal\ |
core/ |
Provides a form element for input of a URL. | |||
| UrlAlias | class |
Drupal\ |
core/ |
Drupal 6 URL aliases source from database. | |||
| UrlAlias | class |
Drupal\ |
core/ |
Drupal 7 URL aliases source from database. | |||
| UrlAliasBase | abstract class |
Drupal\ |
core/ |
Base class for the url_alias source plugins. | 2 | 2 | |
| UrlAliasLanguage | class |
Drupal\ |
core/ |
Url alias language code process. | |||
| UrlAliasTest | class |
Drupal\ |
core/ |
Tests the d6_url_alias source plugin. | |||
| UrlAliasTest | class |
Drupal\ |
core/ |
Tests the d7_url_alias source plugin. | |||
| UrlAlterFunctionalTest | class |
Drupal\ |
core/ |
Tests altering the inbound path and the outbound path. | |||
| UrlAlterTest | class |
Drupal\ |
core/ |
Tests the capability to alter URLs. | |||
| UrlBubbleableMetadataBubblingTest | class |
Drupal\ |
core/ |
Tests that URL bubbleable metadata is correctly bubbled. | |||
| UrlCacheContext | class |
Drupal\ |
core/ |
Defines the UrlCacheContext service, for "per page" caching. | 2 | ||
| UrlConversionTest | class |
Drupal\ |
core/ |
Tests for database URL to/from database connection array conversions. | |||
| UrlEncode | class |
Drupal\ |
core/ |
URL-encodes the input value. | 1 | ||
| UrlEncodeTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\UrlEncode @group file | |||
| UrlGenerator | class |
Drupal\ |
core/ |
Generates URLs from route names and parameters. | 1 | 1 | 2 |
| UrlGeneratorInterface | interface |
Drupal\ |
core/ |
Defines an interface for generating a url from a route or system path. | 3 | 16 | |
| UrlGeneratorTest | class |
Drupal\ |
core/ |
Confirm that the UrlGenerator is functioning properly. | 1 | 1 | |
| UrlHelper | class |
Drupal\ |
core/ |
Helper class URL based methods. | 67 | ||
| UrlHelperTest | class |
Drupal\ |
core/ |
@group Utility | |||
| UrlIntegrationTest | class |
Drupal\ |
core/ |
Tests the URL object integration into the access system. | |||
| UrlMatcher | class |
Drupal\ |
core/ |
Drupal-specific URL Matcher; handles the Drupal "system path" mapping. | 1 | ||
| UrlPlainFormatter | class |
Drupal\ |
core/ |
Plugin implementation of the 'file_url_plain' formatter. | |||
| UrlResolver | class |
Drupal\ |
core/ |
Overrides the oEmbed URL resolver service for testing purposes. | 1 | ||
| UrlResolver | class |
Drupal\ |
core/ |
Converts oEmbed media URLs into endpoint-specific resource URLs. | 1 | 2 | 2 |
| UrlResolverInterface | interface |
Drupal\ |
core/ |
Defines the interface for the oEmbed URL resolver service. | 1 | 7 | |
| UrlResolverTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\media\OEmbed\UrlResolver | |||
| UrlResolverTest | class |
Drupal\ |
core/ |
Tests the oEmbed URL resolver service. | |||
| UrlTest | class |
Drupal\ |
core/ |
Confirm that \Drupal\Core\Url, \Drupal\Component\Utility\UrlHelper::filterQueryParameters(), \Drupal\Component\Utility\UrlHelper::buildQuery(), and \Drupal\Core\Utility\LinkGeneratorInterface::generate() work correctly with various input. | |||
| UrlTest | class |
Drupal\ |
core/ |
Confirm that the link generator works correctly. |