requirements1_test.install in Drupal 8
Same filename and directory in other branches
Install hooks for test module.
File
core/modules/system/tests/modules/requirements1_test/requirements1_test.installView source
<?php
/**
* @file
* Install hooks for test module.
*/
/**
* Implements hook_requirements().
*/
function requirements1_test_requirements($phase) {
$requirements = [];
// Always fails requirements.
if ('install' == $phase) {
$requirements['requirements1_test'] = [
'title' => t('Requirements 1 Test'),
'severity' => REQUIREMENT_ERROR,
'description' => t('Requirements 1 Test failed requirements.'),
];
}
return $requirements;
}
Functions
Name | Description |
---|---|
requirements1_test_requirements | Implements hook_requirements(). |