class BootstrapProvider in Express 8
Defines a BootstrapProvider annotation object.
Plugin Namespace: "Plugin/Provider".
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\bootstrap\Annotation\BootstrapProvider
Expanded class hierarchy of BootstrapProvider
See also
\Drupal\bootstrap\Plugin\ProviderInterface
\Drupal\bootstrap\Plugin\ProviderManager
\Drupal\bootstrap\Theme::getProviders()
\Drupal\bootstrap\Theme::getProvider()
2 files declare their use of BootstrapProvider
- Custom.php in themes/
contrib/ bootstrap/ src/ Plugin/ Provider/ Custom.php - Contains \Drupal\bootstrap\Plugin\Provider\Custom.
- JsDelivr.php in themes/
contrib/ bootstrap/ src/ Plugin/ Provider/ JsDelivr.php - Contains \Drupal\bootstrap\Plugin\Provider\JsDelivr.
2 classes are annotated with BootstrapProvider
- Custom in themes/
contrib/ bootstrap/ src/ Plugin/ Provider/ Custom.php - The "custom" CDN provider plugin.
- JsDelivr in themes/
contrib/ bootstrap/ src/ Plugin/ Provider/ JsDelivr.php - The "jsdelivr" CDN provider plugin.
File
- themes/
contrib/ bootstrap/ src/ Annotation/ BootstrapProvider.php, line 26 - Contains \Drupal\bootstrap\Annotation\BootstrapProvider.
Namespace
Drupal\bootstrap\AnnotationView source
class BootstrapProvider extends Plugin {
/**
* An API URL used to retrieve data for the provider.
*
* @var string
*/
protected $api = '';
/**
* An array of CSS assets.
*
* @var array
*/
protected $css = [];
/**
* A description about the provider.
*
* @var string
*/
protected $description = '';
/**
* A flag determining whether or not the API request has failed.
*
* @var bool
*/
protected $error = FALSE;
/**
* A flag determining whether or not data has been manually imported.
*
* @var bool
*/
protected $imported = FALSE;
/**
* An array of JavaScript assets.
*
* @var array
*/
protected $js = [];
/**
* A human-readable label.
*
* @var string
*/
protected $label = '';
/**
* An associative array of minified CSS and JavaScript assets.
*
* @var array
*/
protected $min = [
'css' => [],
'js' => [],
];
/**
* An array of themes supported by the provider.
*
* @var array
*/
protected $themes = [];
/**
* An array of versions supported by the provider.
*
* @var array
*/
protected $versions = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BootstrapProvider:: |
protected | property | An API URL used to retrieve data for the provider. | |
BootstrapProvider:: |
protected | property | An array of CSS assets. | |
BootstrapProvider:: |
protected | property | A description about the provider. | |
BootstrapProvider:: |
protected | property | A flag determining whether or not the API request has failed. | |
BootstrapProvider:: |
protected | property | A flag determining whether or not data has been manually imported. | |
BootstrapProvider:: |
protected | property | An array of JavaScript assets. | |
BootstrapProvider:: |
protected | property | A human-readable label. | |
BootstrapProvider:: |
protected | property | An associative array of minified CSS and JavaScript assets. | |
BootstrapProvider:: |
protected | property | An array of themes supported by the provider. | |
BootstrapProvider:: |
protected | property | An array of versions supported by the provider. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |