file Broken.php

Namespace

Drupal\bootstrap\Plugin\Provider
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Provider;
  3. /**
  4. * Broken CDN Provider instance.
  5. *
  6. * @ingroup plugins_provider
  7. *
  8. * @BootstrapProvider(
  9. * id = "_broken",
  10. * label = @Translation("Broken"),
  11. * description = @Translation("Broken CDN Provider instance."),
  12. * hidden = true,
  13. * )
  14. */
  15. class Broken extends ProviderBase {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function alterFrameworkLibrary(array &$framework, $min = NULL) {
  20. // Intentionally left empty.
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function getCacheTtl($type) {
  26. return static::TTL_NEVER;
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function getCdnAssets($version = NULL, $theme = NULL) {
  32. return new CdnAssets();
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function getCdnExceptions($reset = TRUE) {
  38. return [];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function getCdnTheme() {
  44. return NULL;
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function getCdnThemes($version = NULL) {
  50. return new CdnAssets();
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function getCdnVersion() {
  56. return NULL;
  57. }
  58. /**
  59. * {@inheritdoc}
  60. */
  61. public function getCdnVersions() {
  62. return [];
  63. }
  64. /**
  65. * {@inheritdoc}
  66. */
  67. public function resetCache() {
  68. // Intentionally left empty.
  69. }
  70. /**
  71. * {@inheritdoc}
  72. */
  73. public function supportsThemes() {
  74. return FALSE;
  75. }
  76. /**
  77. * {@inheritdoc}
  78. */
  79. public function supportsVersions() {
  80. return FALSE;
  81. }
  82. /****************************************************************************
  83. *
  84. * Deprecated methods
  85. *
  86. ***************************************************************************/
  87. /**
  88. * {@inheritdoc}
  89. *
  90. * @deprecated in 8.x-3.18, will be removed in a future release.
  91. */
  92. public function processDefinition(array &$definition, $plugin_id) {
  93. // Intentionally left empty.
  94. }
  95. /**
  96. * {@inheritdoc}
  97. *
  98. * @deprecated in 8.x-3.18, will be removed in a future release.
  99. */
  100. public function processApi(array $json, array &$definition) {
  101. // Intentionally left empty.
  102. }
  103. }

Classes

Name Description
Broken Broken CDN Provider instance.