You are here

class BootstrapProvider in Express 8

Defines a BootstrapProvider annotation object.

Plugin Namespace: "Plugin/Provider".

Hierarchy

Expanded class hierarchy of BootstrapProvider

See also

\Drupal\bootstrap\Plugin\ProviderInterface

\Drupal\bootstrap\Plugin\ProviderManager

\Drupal\bootstrap\Theme::getProviders()

\Drupal\bootstrap\Theme::getProvider()

Plugin API

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\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
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.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2