file BootstrapProvider.php

Contains \Drupal\bootstrap\Annotation\BootstrapProvider.

Namespace

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

Classes

Namesort descending Description
BootstrapProvider Defines a BootstrapProvider annotation object.