ModalEnabled.php in Express 8        
                          
                  
                        
  
  
  
  
File
  themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Modals/ModalEnabled.php
  
    View source  
  <?php
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;
class ModalEnabled extends SettingBase {
  
  public function alterFormElement(Element $form, FormStateInterface $form_state, $form_id = NULL) {
    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',
    ]));
  }
  
  public function getCacheTags() {
    return [
      'rendered',
      'library_info',
    ];
  }
}