Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
UpDownCounterInterface | interface | OpenTelemetry\API\Metrics | vendor/ |
2 | 4 | |||
Upload | class | Drupal\file\Plugin\migrate\source\d6 | core/ |
Drupal 6 upload source from database. | ||||
UploadedFile | class | Symfony\Bridge\PsrHttpMessage\Factory | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
UploadedFile | class | Symfony\Component\HttpFoundation\File | vendor/ |
A file uploaded through a form. | 1 | 8 | ||
UploadedFile | class | GuzzleHttp\Psr7 | vendor/ |
|||||
UploadedFileConstraint | class | Drupal\file\Validation\Constraint | core/ |
A constraint for UploadedFile objects. | 1 | |||
UploadedFileConstraintValidator | class | Drupal\file\Validation\Constraint | core/ |
Constraint validator for uploaded files. | ||||
UploadedFileFactoryInterface | interface | Psr\Http\Message | vendor/ |
2 | 10 | |||
UploadedFileInterface | interface | Drupal\file\Upload | core/ |
Provides an interface for uploaded files. | 2 | |||
UploadedFileInterface | interface | Psr\Http\Message | vendor/ |
Value object representing a file uploaded through an HTTP request. | 1 | 8 | ||
UploadException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when an error occurred during file upload. | 3 | |||
UploadInstance | class | Drupal\file\Plugin\migrate\source\d6 | core/ |
Drupal 6 upload instance source from database. | ||||
UpperCaseConstantNameSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions | vendor/ |
|||||
UpperCaseConstantSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
Upsert | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Upsert. | ||||
Upsert | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. | ||||
Upsert | abstract class | Drupal\Core\Database\Query | core/ |
General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. | 3 | 3 | ||
Upsert | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Upsert. | ||||
Uri | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The URI data type. | 1 | |||
Uri | class | GuzzleHttp\Psr7 | vendor/ |
PSR-7 URI implementation. | 1 | |||
UriComparator | final class | GuzzleHttp\Psr7 | vendor/ |
Provides methods to determine if a modified URL should be considered cross-origin. | ||||
UriFactoryDiscovery | This will be removed in 2.0. Consider using Psr17FactoryDiscovery. |
final class | Http\Discovery | vendor/ |
Finds a URI Factory. | |||
UriFactoryInterface | interface | Psr\Http\Message | vendor/ |
2 | 9 | |||
UriHostConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks if a string conforms to the RFC 3986 host component. | ||||
UriHostConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates if a string conforms to the RFC 3986 host component. | ||||
UriInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for URIs. | 1 | 2 | ||
UriInterface | interface | Psr\Http\Message | vendor/ |
Value object representing a URI. | 1 | 21 | ||
UriItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'uri' entity field type. | 1 | 2 | ||
UriLinkFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'uri_link' formatter. | ||||
UriNormalizer | final class | GuzzleHttp\Psr7 | vendor/ |
Provides methods to normalize and compare URIs. | ||||
UriResolver | class | JsonSchema\Uri | vendor/ |
Resolves JSON Schema URIs | 2 | |||
UriResolver | class | Symfony\Component\DomCrawler | vendor/ |
The UriResolver class takes an URI (relative, absolute, fragment, etc.) and turns it into an absolute URI against another given base URI. | ||||
UriResolver | final class | GuzzleHttp\Psr7 | vendor/ |
Resolves a URI reference in the context of a base URI and the opposite way. | ||||
UriResolverException | class | JsonSchema\Exception | vendor/ |
Wrapper for the UriResolverException | 1 | |||
UriResolverInterface | interface | JsonSchema | vendor/ |
@package JsonSchema | 1 | 1 | ||
UriRetriever | class | JsonSchema\Uri | vendor/ |
Retrieves JSON Schema URIs | 2 | |||
UriRetrieverInterface | interface | JsonSchema\Uri\Retrievers | vendor/ |
Interface for URI retrievers | 1 | 1 | ||
UriRetrieverInterface | interface | JsonSchema | vendor/ |
@package JsonSchema | 1 | 2 | ||
UriSigner | class | Symfony\Component\HttpFoundation | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 4 | |||
UriWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'uri' widget. | ||||
Url | final class | phpDocumentor\Reflection\DocBlock\Tags\Reference | vendor/ |
Url reference used by { | 1 | |||
Url | class | Drupal\views\Plugin\views\field | core/ |
Field handler to provide simple renderer that turns a URL into a clickable link. | ||||
Url | class | Drupal\Core | core/ |
Defines an object that holds information about a URL. | 354 | |||
Url | class | Composer\Util | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 9 | |||
Url | class | Drupal\Core\Render\Element | core/ |
Provides a form element for input of a URL. | ||||
Url | class | PharIo\Manifest | vendor/ |
|||||
Url | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid URL string. | ||||
UrlAlias | class | Drupal\path\Plugin\migrate\source\d6 | core/ |
Drupal 6 URL aliases source from database. | ||||
UrlAlias | class | Drupal\path\Plugin\migrate\source\d7 | core/ |
Drupal 7 URL aliases source from database. | ||||
UrlAliasBase | abstract class | Drupal\path\Plugin\migrate\source | core/ |
Base class for the url_alias source plugins. | 2 | 2 |