file CdnJsdelivrTheme.php

Namespace

Drupal\bootstrap\Plugin\Setting\Advanced\Cdn
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Setting\Advanced\Cdn;
  3. /**
  4. * Due to BC reasons, this class cannot be moved.
  5. *
  6. * @todo Move namespace up one.
  7. */
  8. use Drupal\bootstrap\Plugin\Setting\DeprecatedSettingInterface;
  9. /**
  10. * The "cdn_jsdelivr_theme" theme setting.
  11. *
  12. * @BootstrapSetting(
  13. * cdn_provider = "jsdelivr",
  14. * id = "cdn_jsdelivr_theme",
  15. * type = "select",
  16. * title = @Translation("Theme"),
  17. * description = @Translation("Choose the Example Theme provided by Bootstrap or one of the Bootswatch themes."),
  18. * defaultValue = "bootstrap",
  19. * empty_option = @Translation("Default"),
  20. * empty_value = "bootstrap",
  21. * groups = {
  22. * "cdn" = @Translation("CDN (Content Delivery Network)"),
  23. * "cdn_provider" = false,
  24. * "jsdelivr" = false,
  25. * },
  26. * )
  27. *
  28. * @deprecated since 8.x-3.18. Replaced with new setting. Will be removed in a
  29. * future release.
  30. *
  31. * @see \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnTheme
  32. */
  33. class CdnJsdelivrTheme extends CdnProviderBase implements DeprecatedSettingInterface {
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function getDeprecatedReason() {
  38. return $this->t('Replaced with new setting. Will be removed in a future release.');
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function getDeprecatedReplacement() {
  44. return '\Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnTheme';
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function getDeprecatedReplacementSetting() {
  50. return $this->theme->getSettingPlugin('cdn_theme');
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function getDeprecatedVersion() {
  56. return '8.x-3.18';
  57. }
  58. }

Classes

Name Description
CdnJsdelivrTheme The "cdn_jsdelivr_theme" theme setting.