Version 1
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / Advanced / Cdn / CdnCustomJsMin.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCustomJsMin.
5  */
6
7 namespace Drupal\bootstrap\Plugin\Setting\Advanced\Cdn;
8
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
12
13 /**
14  * The "cdn_custom_js_min" theme setting.
15  *
16  * @ingroup plugins_setting
17  *
18  * @BootstrapSetting(
19  *   cdn_provider = "custom",
20  *   id = "cdn_custom_js_min",
21  *   type = "textfield",
22  *   weight = 4,
23  *   title = @Translation("Minified Bootstrap JavaScript URL"),
24  *   defaultValue = "https://cdn.jsdelivr.net/bootstrap/3.3.7/js/bootstrap.min.js",
25  *   description = @Translation("Additionally, you can provide the minimized version of the file. It will be used instead if site aggregation is enabled."),
26  *   groups = {
27  *     "advanced" = @Translation("Advanced"),
28  *     "cdn" = @Translation("CDN (Content Delivery Network)"),
29  *     "custom" = false,
30  *   },
31  * )
32  */
33 class CdnCustomJsMin extends SettingBase {
34
35   /**
36    * {@inheritdoc}
37    */
38   public function getCacheTags() {
39     return ['library_info'];
40   }
41
42 }