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
parent
46e33eda0a
commit
47d607ecf5
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue