Version 1
[yaffs-website] / web / themes / contrib / bootstrap / src / Annotation / BootstrapProvider.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Annotation\BootstrapProvider.
5  */
6
7 namespace Drupal\bootstrap\Annotation;
8
9 use Drupal\Component\Annotation\Plugin;
10
11 /**
12  * Defines a BootstrapProvider annotation object.
13  *
14  * Plugin Namespace: "Plugin/Provider".
15  *
16  * @see \Drupal\bootstrap\Plugin\ProviderInterface
17  * @see \Drupal\bootstrap\Plugin\ProviderManager
18  * @see \Drupal\bootstrap\Theme::getProviders()
19  * @see \Drupal\bootstrap\Theme::getProvider()
20  * @see plugin_api
21  *
22  * @Annotation
23  *
24  * @ingroup plugins_provider
25  */
26 class BootstrapProvider extends Plugin {
27
28   /**
29    * An API URL used to retrieve data for the provider.
30    *
31    * @var string
32    */
33   protected $api = '';
34
35   /**
36    * An array of CSS assets.
37    *
38    * @var array
39    */
40   protected $css = [];
41
42   /**
43    * A description about the provider.
44    *
45    * @var string
46    */
47   protected $description = '';
48
49   /**
50    * A flag determining whether or not the API request has failed.
51    *
52    * @var bool
53    */
54   protected $error = FALSE;
55
56   /**
57    * A flag determining whether or not data has been manually imported.
58    *
59    * @var bool
60    */
61   protected $imported = FALSE;
62
63   /**
64    * An array of JavaScript assets.
65    *
66    * @var array
67    */
68   protected $js = [];
69
70   /**
71    * A human-readable label.
72    *
73    * @var string
74    */
75   protected $label = '';
76
77   /**
78    * An associative array of minified CSS and JavaScript assets.
79    *
80    * @var array
81    */
82   protected $min = ['css' => [], 'js' => []];
83
84   /**
85    * An array of themes supported by the provider.
86    *
87    * @var array
88    */
89   protected $themes = [];
90
91   /**
92    * An array of versions supported by the provider.
93    *
94    * @var array
95    */
96   protected $versions = [];
97
98 }