You are here

requirements1_test.install in Drupal 9

Install hooks for test module.

File

core/modules/system/tests/modules/requirements1_test/requirements1_test.install
View 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