@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | if (!empty($settings)) { |
211 | 211 | // Use the Type Style color as the button's background color. |
212 | 212 | if (!empty($settings['color'])) { |
213 | - $build['actions']['quick_draft_form'][$id]['#attributes']['style'] = 'background-color: ' . $settings['color']; |
|
213 | + $build['actions']['quick_draft_form'][$id]['#attributes']['style'] = 'background-color: '.$settings['color']; |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | // Add the Type Style icon to the button. |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | '#type' => 'container', |
220 | 220 | $build['actions']['quick_draft_form'][$id], |
221 | 221 | [ |
222 | - '#markup' => '<i class="material-icons">' . $settings['icon'] . '</i>' |
|
222 | + '#markup' => '<i class="material-icons">'.$settings['icon'].'</i>' |
|
223 | 223 | ], |
224 | 224 | '#attributes' => [ |
225 | 225 | 'class' => ['moderation-sidebar-button-wrapper'], |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | $wrapper = [ |
79 | - '#prefix' => '<div class="container"><div class="row ' . $hero_alignment . '">', |
|
79 | + '#prefix' => '<div class="container"><div class="row '.$hero_alignment.'">', |
|
80 | 80 | '#suffix' => '</div></div>', |
81 | 81 | '#type' => 'container', |
82 | 82 | '#weight' => -1, |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $icon = $build[$field_name]['#object']->field_icon->getString(); |
91 | 91 | if (!empty($icon)) { |
92 | 92 | $wrapper['#children'][$field_name] = [ |
93 | - '#markup' => '<i class="fa ' . $icon . ' hero-icon"></i>', |
|
93 | + '#markup' => '<i class="fa '.$icon.' hero-icon"></i>', |
|
94 | 94 | '#allowed_tags' => ['i'], |
95 | 95 | ]; |
96 | 96 | } |
@@ -104,13 +104,13 @@ discard block |
||
104 | 104 | // Attach styles. |
105 | 105 | $alignment = $entity->get('field_hero_alignment')->getString(); |
106 | 106 | if (preg_match('/^[a-z_]+$/i', $alignment)) { |
107 | - $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-' . $alignment); |
|
107 | + $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-'.$alignment); |
|
108 | 108 | } |
109 | 109 | $color_regex = '/^#[0-9a-f]{6}$/i'; |
110 | 110 | $text_color = $entity->get('field_text_color')->getString(); |
111 | 111 | if (preg_match($color_regex, $text_color)) { |
112 | - $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: ' . $text_color; |
|
113 | - $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: ' . $text_color; |
|
112 | + $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: '.$text_color; |
|
113 | + $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: '.$text_color; |
|
114 | 114 | } |
115 | 115 | $gradient_color = $entity->get('field_gradient_color')->getString(); |
116 | 116 | if (preg_match($color_regex, $gradient_color)) { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | $callout_color = $entity->get('field_callout_color')->getString(); |
133 | 133 | if (preg_match($color_regex, $callout_color)) { |
134 | - $style = 'background-color: ' . $callout_color . ';'; |
|
134 | + $style = 'background-color: '.$callout_color.';'; |
|
135 | 135 | $hex = trim($callout_color, '#'); |
136 | 136 | $r = hexdec(substr($hex, 0, 2)); |
137 | 137 | $g = hexdec(substr($hex, 2, 2)); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) { |
185 | 185 | /** @var \Drupal\block_content\Entity\BlockContent $entity */ |
186 | 186 | $entity = $variables['elements']['content']['#block_content']; |
187 | - $suggestions[] = 'block__block_content__' . $entity->bundle(); |
|
187 | + $suggestions[] = 'block__block_content__'.$entity->bundle(); |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 | |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | // Set up the correct pa$th for the CSV files in this module. |
373 | 373 | $types = ['hero', 'media']; |
374 | 374 | foreach ($types as $type) { |
375 | - $id = 'import_block_' . $type; |
|
375 | + $id = 'import_block_'.$type; |
|
376 | 376 | $definitions[$id]['source']['path'] = str_replace('..', dirname(__FILE__), $definitions[$id]['source']['path']); |
377 | 377 | } |
378 | 378 | } |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | // 'Current @Entity_Type' category. If the block is not a field on the |
434 | 434 | // current entity, allow its category to be remapped. |
435 | 435 | if ($category === '@entity') { |
436 | - $block_info[$key]['category'] = $info['category']->render() . ' Fields'; |
|
436 | + $block_info[$key]['category'] = $info['category']->render().' Fields'; |
|
437 | 437 | } |
438 | 438 | // Place Block Content entities into categories based on their type. |
439 | 439 | elseif ($category === 'Custom') { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | function one_theme_suggestions_menu_alter(&$suggestions, array $variables) { |
25 | 25 | if (isset($variables['attributes']['region'])) { |
26 | - $suggestions[] = 'menu__' . $variables['attributes']['region']; |
|
27 | - $suggestions[] = 'menu__' . $variables['menu_name'] . '__' . $variables['attributes']['region']; |
|
26 | + $suggestions[] = 'menu__'.$variables['attributes']['region']; |
|
27 | + $suggestions[] = 'menu__'.$variables['menu_name'].'__'.$variables['attributes']['region']; |
|
28 | 28 | } |
29 | 29 | } |
@@ -13,6 +13,6 @@ |
||
13 | 13 | $view_mode = $element['#view_mode']; |
14 | 14 | |
15 | 15 | foreach ($original_suggestions as $suggestion) { |
16 | - $suggestions[] = $suggestion . '__' . $view_mode; |
|
16 | + $suggestions[] = $suggestion.'__'.$view_mode; |
|
17 | 17 | } |
18 | 18 | } |