Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Preprocess / BootstrapPanel.php
index 58eb700e38ede0756822504663fc523c7b2c6830..d874772f18c88a4821e400a60c9c5e66f9c5a2c7 100644 (file)
@@ -1,12 +1,7 @@
 <?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Preprocess\BootstrapPanel.
- */
 
 namespace Drupal\bootstrap\Plugin\Preprocess;
 
-use Drupal\bootstrap\Annotation\BootstrapPreprocess;
 use Drupal\bootstrap\Utility\Element;
 use Drupal\bootstrap\Utility\Variables;
 use Drupal\Component\Render\MarkupInterface;
@@ -29,7 +24,12 @@ class BootstrapPanel extends PreprocessBase implements PreprocessInterface {
     $element->map(['id']);
 
     // Add necessary classes.
-    $element->addClass(['form-item', 'js-form-item', 'form-wrapper', 'js-form-wrapper']);
+    $element->addClass([
+      'form-item',
+      'js-form-item',
+      'form-wrapper',
+      'js-form-wrapper',
+    ]);
 
     $body = [];
     $properties = ['field_prefix', 'body', 'children'];