@@ -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()) |
@@ -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 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $request = \Drupal::request(); |
17 | 17 | |
18 | 18 | // Add language body class. |
19 | - $variables['attributes']['class'][] = 'lang-' . $site_language; |
|
19 | + $variables['attributes']['class'][] = 'lang-'.$site_language; |
|
20 | 20 | |
21 | 21 | // Classes for body element. Allows advanced theming based on context |
22 | 22 | $is_front_page = \Drupal::service('path.matcher')->isFrontPage(); |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | $section = 'node-add'; |
31 | 31 | } |
32 | 32 | elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) { |
33 | - $section = 'node-' . $arg[2]; |
|
33 | + $section = 'node-'.$arg[2]; |
|
34 | 34 | } |
35 | 35 | } |
36 | - $variables['attributes']['class'][] = \Drupal\Component\Utility\Html::getClass('section-' . $section); |
|
36 | + $variables['attributes']['class'][] = \Drupal\Component\Utility\Html::getClass('section-'.$section); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | // Store the menu item since it has some useful information. |
@@ -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(); |
@@ -153,8 +153,8 @@ |
||
153 | 153 | && $entity->hasField($image_field) |
154 | 154 | ) { |
155 | 155 | $id = $entity->get($unsplash_field)->value; |
156 | - $raw_image = file_get_contents('unsplash://' . $id); |
|
157 | - $filename = $id . '.jpg'; |
|
156 | + $raw_image = file_get_contents('unsplash://'.$id); |
|
157 | + $filename = $id.'.jpg'; |
|
158 | 158 | $images_dir = "public://images"; |
159 | 159 | if (!is_dir($images_dir)) { |
160 | 160 | mkdir($images_dir); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | // Append the prefix before buildRegions. |
44 | - $build['landing-top']['#prefix'] = '<div class="landing-display-' . $class . ' container-fluid">'; |
|
44 | + $build['landing-top']['#prefix'] = '<div class="landing-display-'.$class.' container-fluid">'; |
|
45 | 45 | |
46 | 46 | // Build the regions via PageBlockDisplayVariant::buildRegions. |
47 | 47 | $build = parent::buildRegions($build); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | continue; |
53 | 53 | } |
54 | 54 | $region_name = Html::getClass("block-region-$region"); |
55 | - $build[$region]['#prefix'] = '<div class="' . $region_name . ' row">'; |
|
55 | + $build[$region]['#prefix'] = '<div class="'.$region_name.' row">'; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | // Add suffix for wrapper after buildRegions. |