Classes, traits, and interfaces - 10.3.x - 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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| Upsert | abstract class | Drupal\Core\Database\Query | core/ |
General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. | 5 | 7 | ||
| Upsert | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\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 | 1 | ||
| UriDependentTestImageEffect | class | Drupal\image_module_test\Plugin\ImageEffect | core/ |
Performs an image operation that depends on the URI of the original image. | ||||
| 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\Render\Element | core/ |
Provides a form element for input of a URL. | ||||
| Url | class | Drupal\Core | core/ |
Defines an object that holds information about a URL. | 1 | 732 | ||
| Url | class | Drupal\views\Plugin\views\field | core/ |
Field handler to provide simple 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. | ||||
| 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 | ||
| 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. | ||||
| UrlAlterFunctionalTest | class | Drupal\Tests\forum\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/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\UrlEncode[[api-linebreak]] @group file | ||||
| UrlGenerator | class | Drupal\Core\Routing | core/ |
Generates URLs from route names and parameters. | 1 | 4 | 2 | |
| UrlGeneratorInterface | interface | Drupal\Core\Routing | core/ |
Defines an interface for generating a URL from a route or system path. | 3 | 17 | ||
| 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. | 80 | |||
| UrlHelperTest | class | Drupal\Tests\Component\Utility | core/ |
@group Utility | ||||
| 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 | 1 | 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 | 7 | ||
| UrlResolverTest | class | Drupal\Tests\media\Functional | core/ |
Tests the oEmbed URL resolver service. | ||||
| UrlTest | class | Drupal\Tests\Core | core/ |
@coversDefaultClass \Drupal\Core\Url[[api-linebreak]] @group UrlTest | ||||
| UrlTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Tests the Url object. | ||||
| UrlTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the form API URL element. | ||||
| UrlTest | class | Drupal\Tests\system\Functional\Common | core/ |
Confirm that the link generator works correctly. | ||||
| UrlTestEntity | class | Drupal\Tests\Core\Entity | core/ |
1 | ||||
| UrlTransformRelativeTest | class | Drupal\KernelTests\Core\File | core/ |
Tests URL transform to relative. | ||||
| UsageTest | class | Drupal\Tests\file\Kernel | core/ |
Tests file usage functions. | ||||
| UseCacheBackendTrait | trait | Drupal\Core\Cache | core/ |
Provides methods to use a cache backend while respecting a 'use caches' flag. | 4 | |||
| Used | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ExampleAttribute] | ||||
| UsedAs | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ClassAttribute] | ||||
| UsedAsQualified | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ClassAttributes\ExampleAttribute] |
Pagination
- Previous page
- Page 188
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.