class BootstrapProvider

Defines a BootstrapProvider annotation object.

Plugin Namespace: "Plugin/Provider".

Hierarchy

  • class \Drupal\bootstrap\Annotation\BootstrapProvider extends \Drupal\Component\Annotation\Plugin

Expanded class hierarchy of BootstrapProvider

Related topics

2 files declare their use of BootstrapProvider
2 classes are annotated with BootstrapProvider
Custom in src/Plugin/Provider/Custom.php
The "custom" CDN provider plugin.
JsDelivr in src/Plugin/Provider/JsDelivr.php
The "jsdelivr" CDN provider plugin.

Namespace

Drupal\bootstrap\Annotation
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

Contains filters are case sensitive
Namesort descending Modifiers Type Description
BootstrapProvider::$api protected property An API URL used to retrieve data for the provider.
BootstrapProvider::$css protected property An array of CSS assets.
BootstrapProvider::$description protected property A description about the provider.
BootstrapProvider::$error protected property A flag determining whether or not the API request has failed.
BootstrapProvider::$imported protected property A flag determining whether or not data has been manually imported.
BootstrapProvider::$js protected property An array of JavaScript assets.
BootstrapProvider::$label protected property A human-readable label.
BootstrapProvider::$min protected property An associative array of minified CSS and JavaScript assets.
BootstrapProvider::$themes protected property An array of themes supported by the provider.
BootstrapProvider::$versions protected property An array of versions supported by the provider.