@@ -58,7 +58,7 @@ |
||
| 58 | 58 | '#type' => 'submit', |
| 59 | 59 | '#value' => $this->t('Remove'), |
| 60 | 60 | '#submit' => [[get_class($this), 'removeItemSubmit']], |
| 61 | - '#name' => 'remove_' . $id, |
|
| 61 | + '#name' => 'remove_'.$id, |
|
| 62 | 62 | '#attributes' => ['data-entity-id' => $id] |
| 63 | 63 | ], |
| 64 | 64 | ]; |
@@ -122,8 +122,7 @@ |
||
| 122 | 122 | // information to return correct part of the form. |
| 123 | 123 | if (!empty($trigger['#ajax']['event']) && $trigger['#ajax']['event'] == 'entity_browser_value_updated') { |
| 124 | 124 | $parents = array_slice($trigger['#array_parents'], 0, -2); |
| 125 | - } |
|
| 126 | - elseif ($trigger['#type'] == 'submit' && strpos($trigger['#name'], '_remove_')) { |
|
| 125 | + } elseif ($trigger['#type'] == 'submit' && strpos($trigger['#name'], '_remove_')) { |
|
| 127 | 126 | $parents = array_slice($trigger['#array_parents'], 0, -4); |
| 128 | 127 | } |
| 129 | 128 | |