Issue #2982582 by arunkumark, nexusnovaz, anish.a, avpaderno, smustgrave, joachim, godotislate, larowlan, cburschka: hook_requirements() doesn't say that severity is optional, or what the default is

(cherry picked from commit c16b8425ff)
merge-requests/9350/merge
quietone 2024-11-25 17:09:52 +13:00
parent 46e33eda0a
commit 47d607ecf5
No known key found for this signature in database
GPG Key ID: 43BFBBB26EA09FE1
1 changed files with 2 additions and 1 deletions

View File

@ -1094,11 +1094,12 @@ function hook_updater_info_alter(&$updaters) {
* install phase, this should only be used for version numbers, do not set
* it if not applicable.
* - description: The description of the requirement/status.
* - severity: The requirement's result/severity level, one of:
* - severity: (optional) The requirement's result/severity level, one of:
* - REQUIREMENT_INFO: For info only.
* - REQUIREMENT_OK: The requirement is satisfied.
* - REQUIREMENT_WARNING: The requirement failed with a warning.
* - REQUIREMENT_ERROR: The requirement failed with an error.
* Defaults to REQUIREMENT_OK when installing, REQUIREMENT_INFO otherwise.
*/
function hook_requirements($phase) {
$requirements = [];