Further modules included.
[yaffs-website] / web / modules / contrib / advagg / advagg_cdn / advagg_cdn.install
1 <?php
2
3 /**
4  * @file
5  * Handles Advanced Aggregation installation and upgrade tasks.
6  */
7
8 /**
9  * Implements hook_requirements().
10  */
11 function advagg_cdn_requirements($phase) {
12   $requirements = [];
13   // Ensure translations don't break at install time.
14   $t = 't';
15
16   // If not at runtime, return here.
17   if ($phase !== 'runtime') {
18     return $requirements;
19   }
20
21   $description = '';
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.');
24   }
25
26   $requirements['advagg_cdn'] = [
27     'title' => $t('AdvAgg CDN'),
28     'severity' => REQUIREMENT_OK,
29     'value' => $t('OK'),
30     'description' => $t('Selected libraries should be coming from the CDN.') . ' ' . $description,
31   ];
32
33   return $requirements;
34 }