@@ -60,7 +60,7 @@ |
||
60 | 60 | if ($node = $event->getRequest()->get('node')) { |
61 | 61 | if (\Drupal::currentUser()->hasPermission('view latest version')) { |
62 | 62 | $theme = $this->themeManager->getActiveTheme()->getName(); |
63 | - $tag = 'config:block.block.' . $theme . '_local_actions'; |
|
63 | + $tag = 'config:block.block.'.$theme.'_local_actions'; |
|
64 | 64 | $this->cacheTagsInvalidator->invalidateTags([$tag]); |
65 | 65 | } |
66 | 66 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * {@inheritdoc} |
19 | 19 | */ |
20 | 20 | public static function getSubscribedEvents() { |
21 | - $events[RoutingEvents::ALTER] = ['onAlterRoutes',-9999]; // negative Values means "late" |
|
21 | + $events[RoutingEvents::ALTER] = ['onAlterRoutes', -9999]; // negative Values means "late" |
|
22 | 22 | return $events; |
23 | 23 | } |
24 | 24 |
@@ -22,12 +22,12 @@ |
||
22 | 22 | public function build() { |
23 | 23 | $build = [ |
24 | 24 | '#markup' => |
25 | - '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">' . |
|
26 | - ' <div data-sticky-light>' . |
|
27 | - ' <nav data-magellan-light>' . |
|
28 | - ' <ul class="horizontal menu nav expanded"></ul>' . |
|
29 | - ' </nav>' . |
|
30 | - ' </div>' . |
|
25 | + '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">'. |
|
26 | + ' <div data-sticky-light>'. |
|
27 | + ' <nav data-magellan-light>'. |
|
28 | + ' <ul class="horizontal menu nav expanded"></ul>'. |
|
29 | + ' </nav>'. |
|
30 | + ' </div>'. |
|
31 | 31 | '</div>', |
32 | 32 | ]; |
33 | 33 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | batch_set($batch); |
91 | 91 | // Set a batch to update configuration as well. |
92 | 92 | if ($batch = locale_config_batch_update_components($options, $langcodes)) { |
93 | - $batch['file'] = drupal_get_path('module', 'df_tools_translation') . '/df_tools_translation.batch.inc'; |
|
93 | + $batch['file'] = drupal_get_path('module', 'df_tools_translation').'/df_tools_translation.batch.inc'; |
|
94 | 94 | batch_set($batch); |
95 | 95 | } |
96 | 96 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | // Import each file. |
118 | 118 | foreach ($langcodes as $langcode) { |
119 | - $filepath = DRUPAL_ROOT . '/' . $path . '/translations/' . $langcode . '.po'; |
|
119 | + $filepath = DRUPAL_ROOT.'/'.$path.'/translations/'.$langcode.'.po'; |
|
120 | 120 | if (file_exists($filepath)) { |
121 | 121 | \Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc'); |
122 | 122 | \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc'); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | ]); |
131 | 131 | |
132 | 132 | $original_file = (object) [ |
133 | - 'filename' => $langcode . '.po', |
|
133 | + 'filename' => $langcode.'.po', |
|
134 | 134 | 'uri' => $filepath |
135 | 135 | ]; |
136 | 136 | $file = locale_translate_file_attach_properties($original_file, $options); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | if ($langcode == 'en') { |
174 | 174 | $langcode = ''; |
175 | 175 | } |
176 | - $url = \Drupal\Core\Url::fromUri('base:/' . $langcode . $alias); |
|
176 | + $url = \Drupal\Core\Url::fromUri('base:/'.$langcode.$alias); |
|
177 | 177 | |
178 | 178 | $current_name = [ |
179 | 179 | '#markup' => t($language->getName()) |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */ |
28 | 28 | $iterator = $source->initializeIterator(); |
29 | - $filename = $iterator->getPath() . '/' . $iterator->getFilename(); |
|
29 | + $filename = $iterator->getPath().'/'.$iterator->getFilename(); |
|
30 | 30 | |
31 | 31 | /** @var \Drupal\migrate\Plugin\migrate\destination\EntityContentBase $destination_plugin */ |
32 | 32 | $destination_plugin = $migration->getDestinationPlugin(); |
@@ -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') { |