You are here

function devel_requirements in Devel 8

Same name and namespace in other branches
  1. 8.3 devel.install \devel_requirements()
  2. 8.2 devel.install \devel_requirements()
  3. 4.x devel.install \devel_requirements()

Implements hook_requirements().

File

./devel.install, line 11
Install, update and uninstall functions for the devel module.

Code

function devel_requirements($phase) {
  $requirements = [];
  if ($phase == 'runtime') {

    // To understand the reasons why this message is marked as info see
    // https://www.drupal.org/node/2834400.
    $requirements['devel'] = [
      'title' => t('Devel module enabled'),
      'description' => t('The Devel module provides access to internal debugging information; therefore it\'s recommended to disable this module on sites in production.'),
      'severity' => REQUIREMENT_INFO,
    ];
  }
  return $requirements;
}