5 * Handles Advanced Aggregation installation and upgrade tasks.
9 * Implements hook_requirements().
11 function advagg_cdn_requirements($phase) {
13 // Ensure translations don't break at install time.
16 // If not at runtime, return here.
17 if ($phase !== 'runtime') {
22 if (\Drupal::config('advagg.settings')->get('cache_level') < 0) {
23 $description = $t('Will be using the unminified version due to AdvAgg being in Development mode.');
26 $requirements['advagg_cdn'] = [
27 'title' => $t('AdvAgg CDN'),
28 'severity' => REQUIREMENT_OK,
30 'description' => $t('Selected libraries should be coming from the CDN.') . ' ' . $description,