testing_requirements.install in Drupal 10
Same filename and directory in other branches
Install hooks for test profile.
File
core/profiles/testing_requirements/testing_requirements.installView source
<?php
/**
* @file
* Install hooks for test profile.
*/
/**
* Implements hook_requirements().
*/
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;
}
Functions
Name | Description |
---|---|
testing_requirements_requirements | Implements hook_requirements(). |