hook_requirements() doesn't say that severity is optional, or what the default is

Created on 29 June 2018, over 6 years ago
Updated 20 September 2024, about 1 month ago

Problem/Motivation

API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...

Some implementations of this don't return a severity level: https://api.drupal.org/api/drupal/core%21modules%21file%21file.install/f...

From a quick look at the code in StatusReport and StatusReportPage, it looks like that's ok. But the docs for the hook don't say that it's optional, or what happens if you omit it.

Steps to reproduce

Proposed resolution

add '(optional)" before severity in the description of the return values.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

RTBC

Version

11.0 ๐Ÿ”ฅ

Component
Documentationย  โ†’

Last updated 13 minutes ago

No maintainer
Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024