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 |
|---|---|---|---|---|---|---|---|---|
| UpdateDescriptionConfigurationPostUpdate | class | Drupal\Tests\system\Functional\Update | core/ |
@covers system_post_update_add_description_to_entity_view_mode[[api-linebreak]] @covers system_post_update_add_description_to_entity_form_mode[[api-linebreak]] | ||||
| UpdateDescriptionTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests for update descriptions. | ||||
| UpdateException | class | Drupal\Core\Utility | core/ |
Exception class used to throw error if a module update fails. | 2 | |||
| UpdateFetcher | class | Drupal\update | core/ |
Fetches project information from remote locations. | 1 | 2 | ||
| UpdateFetcherInterface | interface | Drupal\update | core/ |
Fetches project information from remote locations. | 1 | 8 | ||
| UpdateFetcherTest | class | Drupal\Tests\update\Unit | core/ |
Tests update functionality unrelated to the database. | ||||
| UpdateHookRegistry | class | Drupal\Core\Update | core/ |
Provides module updates versions handling. | 4 | 2 | ||
| UpdateHookRegistryFactory | in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Update\UpdateHookRegistry instead. |
class | Drupal\Core\Update | core/ |
Service factory for the versioning update registry. | 2 | ||
| UpdateHookRegistryTest | class | Drupal\Tests\Core\Update | core/ |
@coversDefaultClass \Drupal\Core\Update\UpdateHookRegistry[[api-linebreak]] @group Update | ||||
| UpdateKernel | class | Drupal\Core\Update | core/ |
Defines a kernel which is used primarily to run the update of Drupal. | 4 | |||
| UpdateLobTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Update query builder with LOB fields. | ||||
| UpdateLocalTasksTest | class | Drupal\Tests\update\Unit\Menu | core/ |
Tests existence of update local tasks. | ||||
| UpdateMailTest | class | Drupal\Tests\update\Unit | core/ |
Tests text of update email. | ||||
| UpdateManager | class | Drupal\update | core/ |
Default implementation of UpdateManagerInterface. | 2 | |||
| UpdateManagerAccessCheck | class | Drupal\update\Access | core/ |
Determines whether allow authorized operations is set. | 2 | |||
| UpdateManagerInstall | class | Drupal\update\Form | core/ |
Configure update settings for this site. | 1 | |||
| UpdateManagerInterface | interface | Drupal\update | core/ |
Manages project update information. | 1 | 11 | ||
| UpdateManagerUpdate | class | Drupal\update\Form | core/ |
Configure update settings for this site. | 1 | |||
| UpdateManagerUpdateTest | class | Drupal\Tests\update\Functional | core/ |
Tests the Update Manager module's 'Update' form and functionality. | ||||
| UpdateMiscTest | class | Drupal\Tests\update\Functional | core/ |
Tests general functionality of the Update module. | ||||
| UpdatePathLastRemovedTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that modules can define their last removed update function. | ||||
| UpdatePathNewDependencyTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Modules can introduce new dependencies and enable them in update hooks. | ||||
| UpdatePathTest | class | Drupal\Tests\dblog\Functional | core/ |
Tests update functions for the Database Logging module. | ||||
| UpdatePathTestBase | abstract class | Drupal\FunctionalTests\Update | core/ |
Provides a base class for writing an update test. | 54 | 53 | ||
| UpdatePathTestBaseFilledTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Runs UpdatePathTestBase with a dump filled with content. | ||||
| UpdatePathTestBaseTest | class | Drupal\FunctionalTests\Update | core/ |
Tests the update path base class. | ||||
| UpdatePathTestJavaScriptTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the presence of JavaScript at update.php. | ||||
| UpdatePathTestTrait | trait | Drupal\Tests | core/ |
Trait UpdatePathTestTrait. | 19 | |||
| UpdatePathWithBrokenRoutingTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the update path with a broken router. | ||||
| UpdatePostUpdateExceptionTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests hook_post_update() when there is an exception in a post update. | ||||
| UpdatePostUpdateFailingTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests hook_post_update() when there are failing update hooks. | ||||
| UpdatePostUpdateTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests hook_post_update(). | ||||
| UpdateProcessor | class | Drupal\update | core/ |
Process project update information. | 2 | |||
| UpdateProcessorInterface | interface | Drupal\update | core/ |
Processor of project update information. | 1 | |||
| Updater | abstract class | Drupal\Core\Updater | core/ |
Defines the base class for Updaters used in Drupal. | 2 | 4 | ||
| UpdateReady | class | Drupal\update\Form | core/ |
Configure update settings for this site. | 1 | |||
| UpdateReducedThemeRegistryTest | class | Drupal\FunctionalTests\Update | core/ |
Tests that update.php is accessible even if there are unstable modules. | ||||
| UpdateRegistry | class | Drupal\Core\Update | core/ |
Provides all and missing update implementations. | 2 | 2 | ||
| UpdateRegistryFactory | in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Update\UpdateRegistry instead. |
class | Drupal\Core\Update | core/ |
Service factory for the update registry. | 2 | ||
| UpdateRegistryTest | class | Drupal\Tests\Core\Update | core/ |
@coversDefaultClass \Drupal\Core\Update\UpdateRegistry[[api-linebreak]] @group Update | ||||
| UpdateRemovedPostUpdateTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests hook_removed_post_updates(). | ||||
| UpdateReportTest | class | Drupal\Tests\update\Kernel | core/ |
Tests update report functionality. | ||||
| UpdaterException | class | Drupal\Core\Updater | core/ |
Defines an Exception class for Drupal\Core\Updater\Updater class hierarchy. | 1 | 1 | ||
| UpdaterFileTransferException | class | Drupal\Core\Updater | core/ |
Defines a child class of Drupal\Core\Updater\UpdaterException. | ||||
| UpdaterInterface | interface | Drupal\Core\Updater | core/ |
Defines an interface for a class which can update a Drupal project. | 2 | |||
| UpdateRoot | class | Drupal\update | core/ |
Gets the root path used by the Update Manager to install or update projects. | 2 | |||
| UpdateRouteSubscriber | class | Drupal\update\Routing | core/ |
Route subscriber for Update module routes. | 2 | |||
| UpdaterTest | class | Drupal\KernelTests\Core\Updater | core/ |
Tests InfoParser class and exception. | ||||
| 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. |
Pagination
- Previous page
- Page 186
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.