function update_script_test_requirements_alter
Same name in other branches
- 10 core/modules/system/tests/modules/update_script_test/update_script_test.install \update_script_test_requirements_alter()
Implements hook_requirements_alter().
File
-
core/
modules/ system/ tests/ modules/ update_script_test/ update_script_test.install, line 46
Code
function update_script_test_requirements_alter(array &$requirements) : void {
if (isset($requirements['update_script_test']) && $requirements['update_script_test']['severity'] === REQUIREMENT_ERROR) {
$requirements['update_script_test']['description'] = 'This is a requirements error provided by the update_script_test module.';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.