testing_requirements.install

Same filename in other branches
  1. 8.9.x core/profiles/testing_requirements/testing_requirements.install
  2. 10 core/profiles/testing_requirements/testing_requirements.install
  3. 11.x core/profiles/testing_requirements/testing_requirements.install
  4. 11.x core/profiles/tests/testing_requirements/testing_requirements.install

Install hooks for test profile.

File

core/profiles/testing_requirements/testing_requirements.install

View source
<?php


/**
 * @file
 * Install hooks for test profile.
 */

/**
 * Implements hook_requirements().
 */
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;
}

Functions

Title Deprecated Summary
testing_requirements_requirements Implements hook_requirements().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.