@@ -95,8 +95,7 @@ discard block |
||
| 95 | 95 | ]; |
| 96 | 96 | } |
| 97 | 97 | unset($build[$field_name]); |
| 98 | - } |
|
| 99 | - elseif ($field_name !== 'field_hero_background') { |
|
| 98 | + } elseif ($field_name !== 'field_hero_background') { |
|
| 100 | 99 | $wrapper['#children'][$field_name] = $build[$field_name]; |
| 101 | 100 | unset($build[$field_name]); |
| 102 | 101 | } |
@@ -139,8 +138,7 @@ discard block |
||
| 139 | 138 | if ($r + $g + $b > 382) { |
| 140 | 139 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg'; |
| 141 | 140 | $style .= 'border-color:black;color:black;'; |
| 142 | - } |
|
| 143 | - else { |
|
| 141 | + } else { |
|
| 144 | 142 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-dark-bg'; |
| 145 | 143 | $style .= 'border-color:white;color:white;'; |
| 146 | 144 | } |
@@ -274,8 +272,7 @@ discard block |
||
| 274 | 272 | unset($form['flipper']['front']['settings']['view_mode']['#options'][$view_mode]); |
| 275 | 273 | } |
| 276 | 274 | } |
| 277 | - } |
|
| 278 | - elseif ($form['plugin_id']['#value'] === 'media_embed') { |
|
| 275 | + } elseif ($form['plugin_id']['#value'] === 'media_embed') { |
|
| 279 | 276 | if (empty(Element::getVisibleChildren($form['flipper']['front']['settings']['selection']['table'])) && !$form_state->isProcessingInput()) { |
| 280 | 277 | $form['#attached']['library'][] = 'df_tools_blocks/auto_open'; |
| 281 | 278 | $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_mids_entity_browser'; |
@@ -453,16 +450,14 @@ discard block |
||
| 453 | 450 | if (isset($category_map[$category])) { |
| 454 | 451 | // Already translated. |
| 455 | 452 | $block_info[$key]['category'] = $category_map[$category]; |
| 456 | - } |
|
| 457 | - elseif (is_string($block_info[$key]['category'])) { |
|
| 453 | + } elseif (is_string($block_info[$key]['category'])) { |
|
| 458 | 454 | // Already translated. |
| 459 | 455 | $block_info[$key]['category'] = $block_info[$key]['category']; |
| 460 | 456 | } |
| 461 | 457 | if (isset($label_map[$label])) { |
| 462 | 458 | // Already translated. |
| 463 | 459 | $block_info[$key]['label'] = $label_map[$label]; |
| 464 | - } |
|
| 465 | - elseif (is_string($block_info[$key]['label'])) { |
|
| 460 | + } elseif (is_string($block_info[$key]['label'])) { |
|
| 466 | 461 | // Already translated. |
| 467 | 462 | $block_info[$key]['label'] = $block_info[$key]['label']; |
| 468 | 463 | } |