Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| UploadInstance | class | Drupal\file\Plugin\migrate\source\d6 | core/ |
Drupal 6 upload instance source from database. | 1 | |||
| UploadInstanceTest | class | Drupal\Tests\file\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 d6_upload_instance source plugin. | ||||
| UploadTest | class | Drupal\Tests\file\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 d6_upload source plugin. | ||||
| Upsert | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Upsert. | ||||
| Upsert | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite 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. | 5 | 6 | ||
| Upsert | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Upsert. | ||||
| Upsert | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert. | ||||
| UpsertTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Upsert query builder. | ||||
| Uri | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The URI data type. | 1 | 3 | 1 | |
| UriDependentTestImageEffect | class | Drupal\image_module_test\Plugin\ImageEffect | core/ |
Performs an image operation that depends on the URI of the original image. | ||||
| 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. | ||||
| UriHostValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests the UriHost validator. | ||||
| UriInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for URIs. | 1 | 3 | ||
| UriItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'uri' entity field type. | 1 | 3 | ||
| UriItemTest | class | Drupal\Tests\Core\Field | core/ |
Defines a test for the UriItem field-type. | ||||
| UriItemTest | class | Drupal\Tests\field\Kernel\Uri | core/ |
Tests URI field functionality. | ||||
| UriLinkFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'uri_link' formatter. | ||||
| UriWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'uri' widget. | ||||
| Url | class | Drupal\Core | core/ |
Defines an object that holds information about a URL. | 1 | 779 | ||
| Url | class | Drupal\Core\Render\Element | core/ |
Provides a form element for input of a URL. | ||||
| Url | class | Drupal\views\Plugin\views\field | core/ |
Field handler to provide a renderer that turns a URL into a clickable link. | ||||
| UrlAlias | class | Drupal\path\Plugin\migrate\source\d6 | core/ |
Drupal 6 URL aliases source from database. | 1 | |||
| UrlAlias | class | Drupal\path\Plugin\migrate\source\d7 | core/ |
Drupal 7 URL aliases source from database. | 1 | |||
| UrlAliasBase | abstract class | Drupal\path\Plugin\migrate\source | core/ |
Base class for the url_alias source plugins. | 2 | 2 | ||
| UrlAliasTest | class | Drupal\Tests\path\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the d6_url_alias source plugin. | ||||
| UrlAliasTest | class | Drupal\Tests\path\Kernel\Plugin\migrate\source\d7 | core/ |
Tests the d7_url_alias source plugin. | ||||
| UrlAlterFunctionalTest | class | Drupal\Tests\path_alias\Functional | core/ |
Tests altering the inbound path and the outbound path. | ||||
| UrlAlterTest | class | Drupal\KernelTests\Core\Path | core/ |
Tests the capability to alter URLs. | ||||
| UrlBubbleableMetadataBubblingTest | class | Drupal\Tests\system\Functional\Render | core/ |
Tests that URL bubbleable metadata is correctly bubbled. | ||||
| UrlCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the UrlCacheContext service, for "per page" caching. | 2 | |||
| UrlConversionTest | class | Drupal\Tests\Core\Database | core/ |
Tests for database URL to/from database connection array conversions. | ||||
| UrlEncode | class | Drupal\migrate\Plugin\migrate\process | core/ |
URL-encodes the input value. | 1 | |||
| UrlEncodeTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests Drupal\migrate\Plugin\migrate\process\UrlEncode. | ||||
| UrlGenerator | class | Drupal\Core\Routing | core/ |
Generates URLs from route names and parameters. | 1 | 6 | 2 | |
| UrlGeneratorInterface | interface | Drupal\Core\Routing | core/ |
Defines an interface for generating a URL from a route or system path. | 3 | 22 | ||
| UrlGeneratorTest | class | Drupal\Tests\Core\Routing | core/ |
Confirm that the UrlGenerator is functioning properly. | 1 | 1 | ||
| UrlHelper | class | Drupal\Component\Utility | core/ |
Helper class URL based methods. | 91 | |||
| UrlHelperFormatConstraint | class | Drupal\Tests\Core\Theme\Component | core/ |
Defines a custom format constraint for json-schema. | ||||
| UrlHelperTest | class | Drupal\Tests\Component\Utility | core/ |
Tests Drupal\Component\Utility\UrlHelper. | ||||
| UrlIntegrationTest | class | Drupal\KernelTests\Core\Routing | core/ |
Tests the URL object integration into the access system. | ||||
| UrlMatcher | class | Drupal\Core\Routing | core/ |
Drupal-specific URL Matcher; handles the Drupal "system path" mapping. | 1 | |||
| UrlPlainFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_url_plain' formatter. | ||||
| UrlResolver | class | Drupal\media\OEmbed | core/ |
Converts oEmbed media URLs into endpoint-specific resource URLs. | 1 | 3 | 2 | |
| UrlResolver | class | Drupal\media_test_oembed | core/ |
Overrides the oEmbed URL resolver service for testing purposes. | 1 | |||
| UrlResolverInterface | interface | Drupal\media\OEmbed | core/ |
Defines the interface for the oEmbed URL resolver service. | 1 | 8 | ||
| UrlResolverTest | class | Drupal\Tests\media\Unit | core/ |
Tests the oEmbed URL resolver. | ||||
| UrlResolverTest | class | Drupal\Tests\media\Functional | core/ |
Tests the oEmbed URL resolver service. | ||||
| UrlTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the form API URL element. |
Pagination
- Previous page
- Page 210
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.