function testing_requirements_requirements

Same name in other branches
  1. 8.9.x core/profiles/testing_requirements/testing_requirements.install \testing_requirements_requirements()
  2. 10 core/profiles/testing_requirements/testing_requirements.install \testing_requirements_requirements()
  3. 11.x core/profiles/testing_requirements/testing_requirements.install \testing_requirements_requirements()
  4. 11.x core/profiles/tests/testing_requirements/testing_requirements.install \testing_requirements_requirements()

Implements hook_requirements().

File

core/profiles/testing_requirements/testing_requirements.install, line 11

Code

function testing_requirements_requirements($phase) {
    $requirements = [];
    if ($phase === 'install') {
        $requirements['testing_requirements'] = [
            'title' => t('Testing requirements'),
            'severity' => REQUIREMENT_ERROR,
            'description' => t('Testing requirements failed requirements.'),
        ];
    }
    return $requirements;
}

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