ecd571224fe4f15d519837c8d8d9c113ed2c188a
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / Advanced / Cdn / CdnCustomCss.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCustomCss.
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_css" theme setting.
15  *
16  * @ingroup plugins_setting
17  *
18  * @BootstrapSetting(
19  *   cdn_provider = "custom",
20  *   id = "cdn_custom_css",
21  *   type = "textfield",
22  *   weight = 1,
23  *   title = @Translation("Bootstrap CSS URL"),
24  *   defaultValue = "https://cdn.jsdelivr.net/bootstrap/3.3.7/css/bootstrap.css",
25  *   description = @Translation("It is best to use <code>https</code> protocols here as it will allow more flexibility if the need ever arises."),
26  *   groups = {
27  *     "advanced" = @Translation("Advanced"),
28  *     "cdn" = @Translation("CDN (Content Delivery Network)"),
29  *     "custom" = false,
30  *   },
31  * )
32  */
33 class CdnCustomCss extends SettingBase {
34
35   /**
36    * {@inheritdoc}
37    */
38   public function getCacheTags() {
39     return ['library_info'];
40   }
41
42 }