update_test_failing.install
Same filename and directory in other branches
- 11.x core/modules/system/tests/modules/update_test_failing/update_test_failing.install
- 10 core/modules/system/tests/modules/update_test_failing/update_test_failing.install
- 9 core/modules/system/tests/modules/update_test_failing/update_test_failing.install
- 8.9.x core/modules/system/tests/modules/update_test_failing/update_test_failing.install
File
-
core/
modules/ system/ tests/ modules/ update_test_failing/ update_test_failing.install
View source
<?php
/**
* @file
* Contains a failing update hook for testing the update system.
*/
declare (strict_types=1);
use Drupal\Core\Utility\UpdateException;
/**
* This update will fail.
*/
function update_test_failing_update_8001() : void {
throw new UpdateException('This update hook is failing.');
}
/**
* A further update.
*/
function update_test_failing_update_8002() : void {
// This hook won't ever run.
}
Functions
| Title | Deprecated | Summary |
|---|---|---|
| update_test_failing_update_8001 | This update will fail. | |
| update_test_failing_update_8002 | A further update. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.