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 |
|---|---|---|---|---|---|---|---|---|
| UpdateSelectionCommand | class | Drupal\media_library\Ajax | core/ |
AJAX command for adding media items to the media library selection. | 1 | |||
| UpdateSemverContribBaselineTest | class | Drupal\Tests\update\Functional | core/ |
Tests the Update Status module with a contrib module with semver versions. | ||||
| UpdateSemverContribSecurityAvailabilityTest | class | Drupal\Tests\update\Functional | core/ |
Tests Update Status with a security update available for a contrib project. | ||||
| UpdateSemverContribTestBase | abstract class | Drupal\Tests\update\Functional | core/ |
Base class for Update Status semantic versioning tests of contrib projects. | 2 | |||
| UpdateSemverCoreBaselineTest | class | Drupal\Tests\update\Functional | core/ |
Tests semantic version handling in the Update Status module for Drupal core. | ||||
| UpdateSemverCoreSecurityAvailabilityTest | class | Drupal\Tests\update\Functional | core/ |
Tests Update Status with a security update available for Drupal core. | ||||
| UpdateSemverCoreSecurityCoverageTest | class | Drupal\Tests\update\Functional | core/ |
Tests the security coverage messages for Drupal core versions. | ||||
| UpdateSemverCoreTest | class | Drupal\Tests\update\Functional | core/ |
Tests edge cases of the Available Updates report UI. | ||||
| UpdateSemverCoreTestBase | abstract class | Drupal\Tests\update\Functional | core/ |
Base class for Update Status semantic versioning tests of Drupal core. | 4 | |||
| UpdateSemverTestBase | abstract class | Drupal\Tests\update\Functional | core/ |
Common setup and utility methods to test projects that use semver releases. | 2 | |||
| UpdateSemverTestBaselineTrait | trait | Drupal\Tests\update\Functional | core/ |
Provides test methods for semver tests shared between core and contrib. | ||||
| UpdateSemverTestSecurityAvailabilityTrait | trait | Drupal\Tests\update\Functional | core/ |
Provides a test and data provider for semver security availability tests. | ||||
| UpdateServiceProvider | class | Drupal\Core\Update | core/ |
Customizes the container for running updates. | ||||
| UpdateSettings | class | Drupal\update\Plugin\migrate\source | core/ |
Drupal 6/7 Update settings source from database. | ||||
| UpdateSettingsForm | class | Drupal\update | core/ |
Configure update settings for this site. | 1 | |||
| UpdateSettingsFormTest | class | Drupal\Tests\update\Functional | core/ |
Tests the update_settings form. | ||||
| UpdateStorageTest | class | Drupal\Tests\update\Kernel | core/ |
Tests the Update Status module storage is cleared correctly. | ||||
| UpdatesWith7xTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the minimum schema version when only 7.x update hooks are retained. | ||||
| UpdateTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the update query builder. | ||||
| UpdateTestBase | abstract class | Drupal\Tests\update\Functional | core/ |
Defines some shared functions used by all update tests. | 3 | |||
| UpdateTestBrokenThemeHookHooks | class | Drupal\update_test_broken_theme_hook\Hook | core/ |
Hook implementations for update_test_broken_theme_hook. | ||||
| UpdateTestController | class | Drupal\update_test\Controller | core/ |
Provides different routes of the update_test module. | ||||
| UpdateTestHooks | class | Drupal\update_test\Hook | core/ |
Hook implementations for update_test. | ||||
| UpdateTestSchemaRequirements | class | Drupal\update_test_schema\Hook | core/ |
Requirements for the Update Test Schema module. | ||||
| UpdateTestTrait | trait | Drupal\Tests\update\Functional | core/ |
Provides a trait to set system info and XML mappings. | ||||
| UpdateThemeHooks | class | Drupal\update\Hook | core/ |
Theme hooks for update module. | 1 | |||
| Upgrade6Test | class | Drupal\Tests\migrate_drupal_ui\Functional\d6 | core/ |
Tests Drupal 6 upgrade using the migrate UI. | 1 | |||
| Upgrade6Test | class | Drupal\Tests\contact\Functional\migrate_drupal_ui\d6 | core/ |
Tests Drupal 6 upgrade using the migrate UI. | ||||
| Upgrade6WithContentModerationTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d6 | core/ |
Tests Drupal 6 upgrade using the migrate UI with Content Moderation. | ||||
| Upgrade7Test | class | Drupal\Tests\migrate_drupal_ui\Functional\d7 | core/ |
Tests Drupal 7 upgrade using the migrate UI. | 1 | |||
| Upgrade7Test | class | Drupal\Tests\contact\Functional\migrate_drupal_ui\d7 | core/ |
Tests Drupal 7 upgrade using the migrate UI. | ||||
| Upgrade7WithContentModerationTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d7 | core/ |
Tests Drupal 7 upgrade using the migrate UI with Content Moderation. | ||||
| Upload | class | Drupal\file\Plugin\migrate\source\d6 | core/ |
Drupal 6 upload source from database. | 1 | |||
| 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. | 1 | |||
| UploadedFileConstraintValidatorTest | class | Drupal\Tests\file\Kernel\Validation | core/ |
Tests the uploaded file validator. | ||||
| UploadedFileInterface | interface | Drupal\file\Upload | core/ |
Provides an interface for uploaded files. | 2 | 1 | ||
| UploadHelpTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the output of the file upload help. | ||||
| 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 | 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. | ||||
| Upsert | abstract class | Drupal\Core\Database\Query | core/ |
General class for an abstracted "Upsert" (UPDATE or INSERT) query operation. | 5 | 6 | ||
| UpsertTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Upsert query builder. | ||||
| Uri | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The URI data type. | 2 | 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. |
Pagination
- Previous page
- Page 207
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.