Classes, traits, and interfaces in Drupal 9
Primary tabs
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
|
Name |
Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|
| UpdateManager | class |
Drupal\ |
core/ |
Default implementation of UpdateManagerInterface. | 2 | ||
| UpdateManagerAccessCheck | class |
Drupal\ |
core/ |
Determines whether allow authorized operations is set. | 2 | ||
| UpdateManagerInstall | class |
Drupal\ |
core/ |
Configure update settings for this site. | 1 | ||
| UpdateManagerInterface | interface |
Drupal\ |
core/ |
Manages project update information. | 1 | 8 | |
| UpdateManagerUpdate | class |
Drupal\ |
core/ |
Configure update settings for this site. | 1 | ||
| UpdateManagerUpdateTest | class |
Drupal\ |
core/ |
Tests the Update Manager module's 'Update' form and functionality. | |||
| UpdatePathLastRemovedTest | class |
Drupal\ |
core/ |
Tests that modules can define their last removed update function. | |||
| UpdatePathNewDependencyTest | class |
Drupal\ |
core/ |
Modules can introduce new dependencies and enable them in update hooks. | |||
| UpdatePathTestBase | abstract class |
Drupal\ |
core/ |
Provides a base class for writing an update test. | 24 | 23 | |
| UpdatePathTestBaseFilledTest | class |
Drupal\ |
core/ |
Runs UpdatePathTestBaseTest with a dump filled with content. | |||
| UpdatePathTestBaseTest | class |
Drupal\ |
core/ |
Tests the update path base class. | 1 | 1 | |
| UpdatePathTestJavaScriptTest | class |
Drupal\ |
core/ |
Tests the presence of JavaScript at update.php. | |||
| UpdatePathTestTrait | trait |
Drupal\ |
core/ |
Trait UpdatePathTestTrait. | 12 | ||
| UpdatePathWithBrokenRoutingTest | class |
Drupal\ |
core/ |
Tests the update path with a broken router. | |||
| UpdatePostUpdateFailingTest | class |
Drupal\ |
core/ |
Tests hook_post_update() when there are failing update hooks. | |||
| UpdatePostUpdateTest | class |
Drupal\ |
core/ |
Tests hook_post_update(). | |||
| UpdateProcessor | class |
Drupal\ |
core/ |
Process project update information. | 2 | ||
| UpdateProcessorInterface | interface |
Drupal\ |
core/ |
Processor of project update information. | 1 | ||
| Updater | class |
Drupal\ |
core/ |
Defines the base class for Updaters used in Drupal. | 2 | 4 | |
| UpdateReady | class |
Drupal\ |
core/ |
Configure update settings for this site. | 1 | ||
| UpdateRegistry | class |
Drupal\ |
core/ |
Provides all and missing update implementations. | 2 | 2 | |
| UpdateRegistryFactory | class |
Drupal\ |
core/ |
Service factory for the update registry. | 2 | ||
| UpdateRegistryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Update\UpdateRegistry @group Update | |||
| UpdateRemovedPostUpdateTest | class |
Drupal\ |
core/ |
Tests hook_removed_post_updates(). | |||
| UpdateReportTest | class |
Drupal\ |
core/ |
Tests update report functionality. | |||
| UpdaterException | class |
Drupal\ |
core/ |
Defines an Exception class for the Drupal\Core\Updater\Updater class hierarchy. | 1 | 1 | |
| UpdaterFileTransferException | class |
Drupal\ |
core/ |
Defines a child class of Drupal\Core\Updater\UpdaterException that indicates a Drupal\Core\FileTransfer\FileTransfer exception. | |||
| UpdaterInterface | interface |
Drupal\ |
core/ |
Defines an interface for a class which can update a Drupal project. | 2 | ||
| UpdateRootFactory | class |
Drupal\ |
core/ |
Gets the root path used by the Update Manager to install or update projects. | 2 | ||
| UpdaterTest | class |
Drupal\ |
core/ |
Tests InfoParser class and exception. | |||
| UpdateSchemaTest | class |
Drupal\ |
core/ |
Tests for schema and update includes. | |||
| UpdateSchemaTest | class |
Drupal\ |
core/ |
Tests that update hooks are properly run. | |||
| UpdateScriptTest | class |
Drupal\ |
core/ |
Tests the update script access and functionality. | |||
| UpdateScriptTestController | class |
Drupal\ |
core/ |
Controller routines for update_script_test routes. | |||
| UpdateSelectionCommand | class |
Drupal\ |
core/ |
AJAX command for adding media items to the media library selection. | 1 | ||
| UpdateSemverContribTest | class |
Drupal\ |
core/ |
Tests the Update Manager module with a contrib module with semver versions. | |||
| UpdateSemverCoreTest | class |
Drupal\ |
core/ |
Tests the Update Manager module through a series of functional tests using mock XML data. | |||
| UpdateSemverTestBase | abstract class |
Drupal\ |
core/ |
Common test methods for projects that use semver version releases. | 2 | ||
| UpdateServiceProvider | class |
Drupal\ |
core/ |
Customizes the container for running updates. | |||
| UpdateSettings | class |
Drupal\ |
core/ |
Drupal 6/7 Update settings source from database. | |||
| UpdateSettingsForm | class |
Drupal\ |
core/ |
Configure update settings for this site. | 1 | ||
| UpdatesWith7xTest | class |
Drupal\ |
core/ |
Tests that the minimum schema version is correct even if only 7.x update hooks are retained . | |||
| UpdateTest | class |
Drupal\ |
core/ |
Tests the update query builder. | |||
| UpdateTestArchiver | class |
Drupal\ |
core/ |
Defines a test archiver implementation. | |||
| UpdateTestBase | abstract class |
Drupal\ |
core/ |
Defines some shared functions used by all update tests. | 5 | ||
| UpdateTestController | class |
Drupal\ |
core/ |
Provides different routes of the update_test module. | |||
| UpdateUploadTest | class |
Drupal\ |
core/ |
Tests the Update Manager module's upload and extraction functionality. | |||
| Upgrade6Test | class |
Drupal\ |
core/ |
Tests Drupal 6 upgrade using the migrate UI. | |||
| Upgrade7Test | class |
Drupal\ |
core/ |
Tests Drupal 7 upgrade using the migrate UI. | |||
| Upload | class |
Drupal\ |
core/ |
Drupal 6 upload source from database. |