Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / JavaScript / Modals / ModalEnabled.php
index 2c28ba9c99a2fb70a9b713c10135ec43b87c3cce..20e911fdcb0a3578bcfc7735d566e7f0d3a0d496 100644 (file)
@@ -1,15 +1,9 @@
 <?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Setting\JavaScript\Modals\ModalEnabled.
- */
 
 namespace Drupal\bootstrap\Plugin\Setting\JavaScript\Modals;
 
-use Drupal\bootstrap\Annotation\BootstrapSetting;
 use Drupal\bootstrap\Plugin\Setting\SettingBase;
 use Drupal\bootstrap\Utility\Element;
-use Drupal\Core\Annotation\Translation;
 use Drupal\Core\Form\FormStateInterface;
 
 /**
@@ -21,7 +15,6 @@ use Drupal\Core\Form\FormStateInterface;
  *   id = "modal_enabled",
  *   type = "checkbox",
  *   title = @Translation("Enable Bootstrap Modals"),
- *   description = @Translation("Enabling this will replace core's jQuery UI Dialog implementations with modals from the Bootstrap Framework."),
  *   defaultValue = 1,
  *   weight = -1,
  *   groups = {
@@ -39,7 +32,7 @@ class ModalEnabled extends SettingBase {
     parent::alterFormElement($form, $form_state, $form_id);
     $group = $this->getGroupElement($form, $form_state);
     $group->setProperty('description', t('Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults. See <a href=":url" target="_blank">Bootstrap Modals</a> for more documentation.', [
-      ':url' => 'http://getbootstrap.com/javascript/#modals',
+      ':url' => 'https://getbootstrap.com/docs/3.3/javascript/#modals',
     ]));
   }