function testing_requirements_requirements in Drupal 9
Same name and namespace in other branches
- 8 core/profiles/testing_requirements/testing_requirements.install \testing_requirements_requirements()
Implements hook_requirements().
File
- core/
profiles/ testing_requirements/ testing_requirements.install, line 11 - Install hooks for test profile.
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;
}