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 |
|---|---|---|---|---|---|---|---|---|
| UpdateRegistry | class | Drupal\Core\Update | core/ |
Provides all and missing update implementations. | 3 | 2 | ||
| UpdateRegistryTest | class | Drupal\Tests\Core\Update | core/ |
Tests UpdateRegistry. | ||||
| UpdateRemovedPostUpdateTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests hook_removed_post_updates(). | ||||
| UpdateReportTest | class | Drupal\Tests\update\Kernel | core/ |
Tests update report functionality. | ||||
| UpdateRequirements | class | Drupal\update\Hook | core/ |
Requirements for the update module. | ||||
| UpdateRequirementsTest | class | Drupal\KernelTests\Core\Updater | core/ |
Tests hook_update_requirements() and hook_update_requirements_alter(). | ||||
| UpdateSchemaTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests for schema and update includes. | ||||
| UpdateSchemaTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that update hooks are properly run. | ||||
| UpdateScriptTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the update script access and functionality. | ||||
| UpdateScriptTestController | class | Drupal\update_script_test\Controller | core/ |
Controller routines for update_script_test routes. | ||||
| UpdateScriptTestHooks | class | Drupal\update_script_test\Hook | core/ |
Hook implementations for update_script_test. | ||||
| UpdateScriptTestRequirements | class | Drupal\update_script_test\Hook | core/ |
Requirements for the Update Script Test module. | ||||
| 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. |
Pagination
- Previous page
- Page 209
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.