Completed
Push — 8.x-1.x ( a7c2fa...ffa2fa )
by Janez
02:42
created
src/Form/WidgetsConfig.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     $entity_browser = $form_state->getTemporaryValue('wizard')['entity_browser'];
54 54
 
55 55
     $widgets = [];
56
-    $description = $this->t('The available plugins are:') . '<ul>';
56
+    $description = $this->t('The available plugins are:').'<ul>';
57 57
     foreach ($this->widgetManager->getDefinitions() as $plugin_id => $plugin_definition) {
58 58
       $widgets[$plugin_id] = $plugin_definition['label'];
59
-      $description .= '<li><b>' . $plugin_definition['label'] . ':</b> ' . $plugin_definition['description'] . '</li>';
59
+      $description .= '<li><b>'.$plugin_definition['label'].':</b> '.$plugin_definition['description'].'</li>';
60 60
     }
61 61
     $description .= '</ul>';
62 62
     $default_widgets = [];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     $form['widget'] = [
68 68
       '#type' => 'select',
69 69
       '#title' => $this->t('Add widget plugin'),
70
-      '#options' => ['_none_' => '- ' . $this->t('Select a widget to add it') . ' -'] + $widgets,
70
+      '#options' => ['_none_' => '- '.$this->t('Select a widget to add it').' -'] + $widgets,
71 71
       '#description' => $description,
72 72
       '#ajax' => [
73 73
         'callback' => [get_class($this), 'tableUpdatedAjaxCallback'],
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
       $row['remove'] = [
122 122
         '#type' => 'submit',
123 123
         '#value' => $this->t('Delete'),
124
-        '#name' => 'remove' . $uuid,
124
+        '#name' => 'remove'.$uuid,
125 125
         '#ajax' => [
126 126
           'callback' => [get_class($this), 'tableUpdatedAjaxCallback'],
127 127
           'wrapper' => 'widgets',
Please login to merge, or discard this patch.