function UpdateTestSchemaRequirements::runtime
Implements hook_runtime_requirements().
File
-
core/
modules/ system/ tests/ modules/ update_test_schema/ src/ Hook/ UpdateTestSchemaRequirements.php, line 19
Class
- UpdateTestSchemaRequirements
- Requirements for the Update Test Schema module.
Namespace
Drupal\update_test_schema\HookCode
public function runtime() : array {
$requirements = [];
$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.