Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
7ddeb417
Commit
7ddeb417
authored
4 months ago
by
nicxvan
Committed by
nlighteneddesign
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Update severity descriptions
parent
22b55c9d
No related branches found
No related tags found
1 merge request
!10411
Add hook update requirements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Extension/module.api.php
+3
-2
3 additions, 2 deletions
core/lib/Drupal/Core/Extension/module.api.php
with
3 additions
and
2 deletions
core/lib/Drupal/Core/Extension/module.api.php
+
3
−
2
View file @
7ddeb417
...
...
@@ -1203,8 +1203,9 @@ function hook_requirements_alter(array &$requirements): void {
* - severity: (optional) The requirement's result/severity level, one of:
* - REQUIREMENT_INFO: Has no effect during updates.
* - REQUIREMENT_OK: Has no effect during updates.
* - REQUIREMENT_WARNING: Prevents update unless update_ignore_wa is set.
* - REQUIREMENT_ERROR: Prevents update with the error.
* - REQUIREMENT_WARNING: Displays a warning, user can choose to continue.
* - REQUIREMENT_ERROR: Displays an error message, user cannot continue
* until the problem is resolved.
* Defaults to REQUIREMENT_OK.
*/
function
hook_update_requirements
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment