@@ -48,8 +48,7 @@ discard block |
||
| 48 | 48 | ]; |
| 49 | 49 | } |
| 50 | 50 | unset($build[$field_name]); |
| 51 | - } |
|
| 52 | - else if ($field_name != 'field_hero_image') { |
|
| 51 | + } else if ($field_name != 'field_hero_image') { |
|
| 53 | 52 | $wrapper['#children'][$field_name] = $build[$field_name]; |
| 54 | 53 | unset($build[$field_name]); |
| 55 | 54 | } |
@@ -90,8 +89,7 @@ discard block |
||
| 90 | 89 | if ($r + $g + $b > 382) { |
| 91 | 90 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg'; |
| 92 | 91 | $style .= 'border-color:black;color:black;'; |
| 93 | - } |
|
| 94 | - else { |
|
| 92 | + } else { |
|
| 95 | 93 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-dark-bg'; |
| 96 | 94 | $style .= 'border-color:white;color:white;'; |
| 97 | 95 | } |
@@ -202,8 +200,7 @@ discard block |
||
| 202 | 200 | unset($form['flipper']['front']['settings']['view_mode']['#options'][$view_mode]); |
| 203 | 201 | } |
| 204 | 202 | } |
| 205 | - } |
|
| 206 | - else if ($form['plugin_id']['#value'] == 'media_embed') { |
|
| 203 | + } else if ($form['plugin_id']['#value'] == 'media_embed') { |
|
| 207 | 204 | if (empty(Element::getVisibleChildren($form['flipper']['front']['settings']['selection']['table'])) && !$form_state->isProcessingInput()) { |
| 208 | 205 | $form['#attached']['library'][] = 'df_tools_blocks/auto_open'; |
| 209 | 206 | $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_mids_entity_browser'; |
@@ -367,14 +364,12 @@ discard block |
||
| 367 | 364 | if (isset($block_info[$key])) { |
| 368 | 365 | if (isset($category_map[$category])) { |
| 369 | 366 | $block_info[$key]['category'] = t($category_map[$category]); |
| 370 | - } |
|
| 371 | - else if (is_string($block_info[$key]['category'])) { |
|
| 367 | + } else if (is_string($block_info[$key]['category'])) { |
|
| 372 | 368 | $block_info[$key]['category'] = t($block_info[$key]['category']); |
| 373 | 369 | } |
| 374 | 370 | if (isset($label_map[$label])) { |
| 375 | 371 | $block_info[$key]['label'] = $label_map[$label]; |
| 376 | - } |
|
| 377 | - else if (is_string($block_info[$key]['label'])) { |
|
| 372 | + } else if (is_string($block_info[$key]['label'])) { |
|
| 378 | 373 | $block_info[$key]['label'] = t($block_info[$key]['label']); |
| 379 | 374 | } |
| 380 | 375 | } |