You are here

function testing_requirements_requirements in Drupal 10

Same name and namespace in other branches
  1. 8 core/profiles/testing_requirements/testing_requirements.install \testing_requirements_requirements()
  2. 9 core/profiles/testing_requirements/testing_requirements.install \testing_requirements_requirements()

Implements hook_requirements().

File

core/profiles/testing_requirements/testing_requirements.install, line 11
Install hooks for test profile.

Code

function testing_requirements_requirements($phase) {
  $requirements = [];
  if ($phase === 'install') {
    $requirements['testing_requirements'] = [
      'title' => t('Testing requirements'),
      'severity' => REQUIREMENT_ERROR,
      'description' => t('Testing requirements failed requirements.'),
    ];
  }
  return $requirements;
}