function update_test_schema_requirements
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/update_test_schema/update_test_schema.install \update_test_schema_requirements()
- 8.9.x core/modules/system/tests/modules/update_test_schema/update_test_schema.install \update_test_schema_requirements()
Implements hook_requirements().
File
-
core/
modules/ system/ tests/ modules/ update_test_schema/ update_test_schema.install, line 15
Code
function update_test_schema_requirements($phase) {
$requirements = [];
if ($phase === 'runtime') {
$requirements['path_alias_test'] = [
'title' => 'Path alias test',
'value' => 'Check a path alias for the admin page',
'severity' => REQUIREMENT_INFO,
'description' => new FormattableMarkup('Visit <a href=":link">the structure page</a> to do many useful things.', [
':link' => Url::fromRoute('system.admin_structure')->toString(),
]),
];
}
return $requirements;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.