file CdnCustomCssMin.php

Namespace

Drupal\bootstrap\Plugin\Setting\Advanced\Cdn
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Setting\Advanced\Cdn;
  3. use Drupal\bootstrap\Plugin\Setting\DeprecatedSettingInterface;
  4. /**
  5. * Due to BC reasons, this class cannot be moved.
  6. *
  7. * @todo Move namespace up one.
  8. */
  9. /**
  10. * The "cdn_custom_css_min" theme setting.
  11. *
  12. * @BootstrapSetting(
  13. * id = "cdn_custom_css_min",
  14. * type = "textfield",
  15. * weight = 2,
  16. * title = @Translation("Minified Bootstrap CSS URL"),
  17. * defaultValue = "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css",
  18. * description = @Translation("Additionally, you can provide the minimized version of the file. It will be used instead if site aggregation is enabled."),
  19. * groups = {
  20. * "cdn" = @Translation("CDN (Content Delivery Network)"),
  21. * "cdn_provider" = false,
  22. * "custom" = false,
  23. * },
  24. * )
  25. *
  26. * @deprecated since 8.x-3.18. Replaced with new setting. Will be removed in a
  27. * future release.
  28. *
  29. * @see \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCustom
  30. */
  31. class CdnCustomCssMin extends CdnProviderBase implements DeprecatedSettingInterface {
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function getDeprecatedReason() {
  36. return $this->t('Replaced with new setting. Will be removed in a future release.');
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function getDeprecatedReplacement() {
  42. return '\Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCustom';
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function getDeprecatedReplacementSetting() {
  48. return $this->theme->getSettingPlugin('cdn_custom');
  49. }
  50. /**
  51. * {@inheritdoc}
  52. */
  53. public function getDeprecatedVersion() {
  54. return '8.x-3.18';
  55. }
  56. }

Classes

Name Description
CdnCustomCssMin The "cdn_custom_css_min" theme setting.