1<?php 2 3/** 4 * @file 5 * Install hooks for test profile. 6 */ 7 8/** 9 * Implements hook_requirements(). 10 */ 11function testing_requirements_requirements($phase) { 12 $requirements = []; 13 14 if ($phase === 'install') { 15 $requirements['testing_requirements'] = [ 16 'title' => t('Testing requirements'), 17 'severity' => REQUIREMENT_ERROR, 18 'description' => t('Testing requirements failed requirements.'), 19 ]; 20 } 21 22 return $requirements; 23} 24