Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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/ |
@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 | 2 | 2 | |
| UrlGeneratorInterface | interface | Drupal\Core\Routing | core/ |
Defines an interface for generating a URL from a route or system path. | 3 | 16 | ||
| 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. | 69 | |||
| 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 | 2 | 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\Kernel | core/ |
@coversDefaultClass \Drupal\media\OEmbed\UrlResolver[[api-linebreak]] | ||||
| 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. | ||||
| 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 | |||
| User | class | Drupal\user\Entity | core/ |
Defines the user entity class. | 1 | 172 | ||
| User | class | Drupal\user\Plugin\views\argument_validator | core/ |
Validate whether an argument is a valid user. | 1 | |||
| User | class | Drupal\user\Plugin\views\argument_default | core/ |
Default argument plugin to extract a user from request. | ||||
| User | class | Drupal\user\Plugin\migrate\source\d6 | core/ |
Drupal 6 user source from database. | ||||
| User | class | Drupal\user\Plugin\migrate\source\d7 | core/ |
Drupal 7 user source from database. | ||||
| User | class | Drupal\user\Plugin\migrate | core/ |
Plugin class for Drupal 7 user migrations dealing with fields and profiles. | 2 | |||
| UserAccessControlHandler | class | Drupal\user | core/ |
Defines the access control handler for the user entity type. | 1 | |||
| UserAccessControlHandlerTest | class | Drupal\Tests\user\Unit | core/ |
Tests the user access controller. | ||||
| UserAccountFormFieldsTest | class | Drupal\Tests\user\Kernel | core/ |
Verifies the field order in user account forms. | ||||
| UserAccountFormPasswordResetTest | class | Drupal\Tests\user\Kernel | core/ |
Verifies that the password reset behaves as expected with form elements. | ||||
| UserAccountLinksTest | class | Drupal\Tests\user\Functional | core/ |
Tests user-account links. | ||||
| UserActionConfigSchemaTest | class | Drupal\Tests\user\Kernel | core/ |
Tests that the config schema is valid when roles are added or removed. | ||||
| UserAdminLanguageTest | class | Drupal\Tests\user\Functional | core/ |
Tests users' ability to change their own administration language. | ||||
| UserAdminListingTest | class | Drupal\Tests\user\Functional | core/ |
Tests the user admin listing if views is not enabled. | ||||
| UserAdminSettingsFormTest | class | Drupal\Tests\user\Kernel | core/ |
Configuration object user.mail and user.settings save test. | ||||
| UserAdminTest | class | Drupal\Tests\user\Functional | core/ |
Tests user administration page functionality. | ||||
| UserAgent | class | Drupal\Component\Utility | core/ |
Provides user agent related utility functions. | 3 | |||
| UserAgentTest | class | Drupal\Tests\Component\Utility | core/ |
Tests bytes size parsing helper methods. | ||||
| UserAttributesTest | class | Drupal\Tests\rdf\Functional | core/ |
Tests the RDFa markup of Users. | ||||
| UserAuth | class | Drupal\user | core/ |
Validates user authentication credentials. | 1 | 2 | ||
| UserAuthenticationController | class | Drupal\user\Controller | core/ |
Provides controllers for login, login status and logout via HTTP requests. | 2 |
Pagination
- Previous page
- Page 179
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.