@@ -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 | |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | // 'Current @Entity_Type' category. If the block is not a field on the |
422 | 422 | // current entity, allow its category to be remapped. |
423 | 423 | if ($category === '@entity') { |
424 | - $block_info[$key]['category'] = $info['category']->render() . ' Fields'; |
|
424 | + $block_info[$key]['category'] = $info['category']->render().' Fields'; |
|
425 | 425 | } |
426 | 426 | // Place Block Content entities into categories based on their type. |
427 | 427 | elseif ($category === 'Custom') { |