@@ -34,8 +34,7 @@ discard block |
||
| 34 | 34 | ]; |
| 35 | 35 | } |
| 36 | 36 | unset($build[$field_name]); |
| 37 | - } |
|
| 38 | - else if ($field_name != 'field_hero_image') { |
|
| 37 | + } else if ($field_name != 'field_hero_image') { |
|
| 39 | 38 | $wrapper['#children'][$field_name] = $build[$field_name]; |
| 40 | 39 | unset($build[$field_name]); |
| 41 | 40 | } |
@@ -76,8 +75,7 @@ discard block |
||
| 76 | 75 | if ($r + $g + $b > 382) { |
| 77 | 76 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg'; |
| 78 | 77 | $style .= 'border-color:black;color:black;'; |
| 79 | - } |
|
| 80 | - else { |
|
| 78 | + } else { |
|
| 81 | 79 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-dark-bg'; |
| 82 | 80 | $style .= 'border-color:white;color:white;'; |
| 83 | 81 | } |
@@ -187,8 +185,7 @@ discard block |
||
| 187 | 185 | } |
| 188 | 186 | } |
| 189 | 187 | |
| 190 | - } |
|
| 191 | - else if ($form['plugin_id']['#value'] == 'image_embed' && !$form_state->isProcessingInput()) { |
|
| 188 | + } else if ($form['plugin_id']['#value'] == 'image_embed' && !$form_state->isProcessingInput()) { |
|
| 192 | 189 | $form['#attached']['library'][] = 'df_tools_blocks/auto_open'; |
| 193 | 190 | $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_fids_entity_browser'; |
| 194 | 191 | } |
@@ -340,14 +337,12 @@ discard block |
||
| 340 | 337 | if (isset($block_info[$key])) { |
| 341 | 338 | if (isset($category_map[$category])) { |
| 342 | 339 | $block_info[$key]['category'] = t($category_map[$category]); |
| 343 | - } |
|
| 344 | - else if (is_string($block_info[$key]['category'])) { |
|
| 340 | + } else if (is_string($block_info[$key]['category'])) { |
|
| 345 | 341 | $block_info[$key]['category'] = t($block_info[$key]['category']); |
| 346 | 342 | } |
| 347 | 343 | if (isset($label_map[$label])) { |
| 348 | 344 | $block_info[$key]['label'] = $label_map[$label]; |
| 349 | - } |
|
| 350 | - else if (is_string($block_info[$key]['label'])) { |
|
| 345 | + } else if (is_string($block_info[$key]['label'])) { |
|
| 351 | 346 | $block_info[$key]['label'] = t($block_info[$key]['label']); |
| 352 | 347 | } |
| 353 | 348 | } |