requirements1_test.module

Same filename in other branches
  1. 7.x modules/simpletest/tests/requirements1_test.module
  2. 10 core/modules/system/tests/modules/requirements1_test/requirements1_test.module
  3. 11.x core/modules/system/tests/modules/requirements1_test/requirements1_test.module

Hook implementations for requirements1_test module.

File

core/modules/system/tests/modules/requirements1_test/requirements1_test.module

View source
<?php


/**
 * @file
 * Hook implementations for requirements1_test module.
 */

/**
 * Implements hook_requirements_alter().
 */
function requirements1_test_requirements_alter(array &$requirements) : void {
    // Change the title.
    $requirements['requirements1_test_alterable']['title'] = t('Requirements 1 Test - Changed');
    // Decrease the severity.
    $requirements['requirements1_test_alterable']['severity'] = REQUIREMENT_WARNING;
    // Delete 'requirements1_test_deletable',
    unset($requirements['requirements1_test_deletable']);
}

Functions

Title Deprecated Summary
requirements1_test_requirements_alter Implements hook_requirements_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.