file BootstrapProvider.php

Namespace

Drupal\bootstrap\Annotation
  1. <?php
  2. namespace Drupal\bootstrap\Annotation;
  3. use Drupal\Component\Annotation\Plugin;
  4. /**
  5. * Defines a BootstrapProvider annotation object.
  6. *
  7. * Plugin Namespace: "Plugin/Provider".
  8. *
  9. * @see \Drupal\bootstrap\Plugin\ProviderInterface
  10. * @see \Drupal\bootstrap\Plugin\ProviderManager
  11. * @see \Drupal\bootstrap\Theme::getCdnProviders()
  12. * @see \Drupal\bootstrap\Theme::getCdnProvider()
  13. * @see plugin_api
  14. *
  15. * @Annotation
  16. *
  17. * @ingroup plugins_provider
  18. */
  19. class BootstrapProvider extends Plugin {
  20. /**
  21. * An API URL used to retrieve data for the provider.
  22. *
  23. * @var string
  24. *
  25. * @deprecated in 8.x-3.18, will be removed in a future release.
  26. */
  27. protected $api = '';
  28. /**
  29. * An array of CSS assets.
  30. *
  31. * @var array
  32. *
  33. * @deprecated in 8.x-3.18, will be removed in a future release.
  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. * @deprecated in 8.x-3.18, will be removed in a future release.
  48. */
  49. protected $error = FALSE;
  50. /**
  51. * A flag determining whether or not data has been manually imported.
  52. *
  53. * @var bool
  54. *
  55. * @deprecated in 8.x-3.18, will be removed in a future release.
  56. */
  57. protected $imported = FALSE;
  58. /**
  59. * An array of JavaScript assets.
  60. *
  61. * @var array
  62. *
  63. * @deprecated in 8.x-3.18, will be removed in a future release.
  64. */
  65. protected $js = [];
  66. /**
  67. * A human-readable label.
  68. *
  69. * @var string
  70. */
  71. protected $label = '';
  72. /**
  73. * An associative array of minified CSS and JavaScript assets.
  74. *
  75. * @var array
  76. *
  77. * @deprecated in 8.x-3.18, will be removed in a future release.
  78. */
  79. protected $min = ['css' => [], 'js' => []];
  80. /**
  81. * An array of themes supported by the provider.
  82. *
  83. * @var array
  84. *
  85. * @deprecated in 8.x-3.18, will be removed in a future release.
  86. */
  87. protected $themes = [];
  88. /**
  89. * An array of versions supported by the provider.
  90. *
  91. * @var array
  92. *
  93. * @deprecated in 8.x-3.18, will be removed in a future release.
  94. */
  95. protected $versions = [];
  96. }

Classes

Name Description
BootstrapProvider Defines a BootstrapProvider annotation object.