You are here

function nagios_hook_test_module_requirements in Nagios Monitoring 8

Implements hook_requirements().

File

tests/modules/nagios_hook_test_module/nagios_hook_test_module.module, line 33

Code

function nagios_hook_test_module_requirements() {
  $url = Url::fromRoute('nagios.ignored_modules');
  $url
    ->setAbsolute();
  return [
    'big_example_problem' => [
      'title' => 'Nagios Hook Test Module',
      'value' => 'This is an example error.',
      'severity' => REQUIREMENT_ERROR,
      'description' => 'This hook exists to play with IgnoredModulesForm at ' . $url
        ->toString(),
    ],
  ];
}