Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Preprocess / ImageWidget.php
index 8a3381b126bbeaafb197af71f7379d04ca41c218..ec607f3c33acf82b76fe8c21f38965d784a3029f 100644 (file)
@@ -1,12 +1,7 @@
 <?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Preprocess\ImageWidget.
- */
 
 namespace Drupal\bootstrap\Plugin\Preprocess;
 
-use Drupal\bootstrap\Annotation\BootstrapPreprocess;
 use Drupal\bootstrap\Utility\Element;
 use Drupal\bootstrap\Utility\Variables;
 
@@ -27,7 +22,12 @@ class ImageWidget extends PreprocessBase implements PreprocessInterface {
    * {@inheritdoc}
    */
   public function preprocessElement(Element $element, Variables $variables) {
-    $variables->addClass(['image-widget', 'js-form-managed-file', 'form-managed-file', 'clearfix']);
+    $variables->addClass([
+      'image-widget',
+      'js-form-managed-file',
+      'form-managed-file',
+      'clearfix',
+    ]);
 
     $data = &$variables->offsetGet('data', []);
     foreach ($element->children() as $key => $child) {