@@ -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 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */ |
23 | 23 | $iterator = $source->initializeIterator(); |
24 | 24 | $base_path = $iterator->getPath(); |
25 | - $filename = $base_path . '/' . $iterator->getFilename(); |
|
25 | + $filename = $base_path.'/'.$iterator->getFilename(); |
|
26 | 26 | |
27 | 27 | $destination = $migration->getDestinationPlugin(); |
28 | 28 | $entity_type = explode(':', $destination->getPluginId())[1]; |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | $entity = $entity_storage->load($id); |
74 | 74 | |
75 | 75 | // See if a Panelizer config file exists for this Node. |
76 | - $panels_file = $base_path . '/panelizer.panels_display.' . $entity_type . '.' . $entity->uuid() . '.yml'; |
|
76 | + $panels_file = $base_path.'/panelizer.panels_display.'.$entity_type.'.'.$entity->uuid().'.yml'; |
|
77 | 77 | if (file_exists($panels_file) && isset($entity->panelizer)) { |
78 | 78 | $yaml = file_get_contents($panels_file); |
79 | 79 | |
80 | 80 | $panels_display = Yaml::parse($yaml); |
81 | 81 | |
82 | 82 | // The storage ID isn't based on UUIDs, unfortunately. Hotswap it with current info. |
83 | - $panels_display['storage_id'] = $entity_type . ':' . $entity->id() . ':full:' . $entity->getRevisionId(); |
|
83 | + $panels_display['storage_id'] = $entity_type.':'.$entity->id().':full:'.$entity->getRevisionId(); |
|
84 | 84 | |
85 | 85 | // Set the Panels Display to match what's defined in YAML. |
86 | 86 | $entity->panelizer->panels_display = $panels_display; |
@@ -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(); |
@@ -41,8 +41,7 @@ discard block |
||
41 | 41 | // Prefer UUIDs to other fields. |
42 | 42 | if (in_array('UUID', $ids, TRUE)) { |
43 | 43 | $id_map = ['uuid', 'UUID']; |
44 | - } |
|
45 | - else { |
|
44 | + } else { |
|
46 | 45 | foreach ($processes as $field => $process) { |
47 | 46 | if (isset($process[0]['source']) && $process[0]['source'] == $ids[0]) { |
48 | 47 | $id_map = [$field, $ids[0]]; |
@@ -59,8 +58,7 @@ discard block |
||
59 | 58 | // Create a migrate executable, which we use later to set row values. |
60 | 59 | if (function_exists('drush_log')) { |
61 | 60 | $log = new DrushLogMigrateMessage(); |
62 | - } |
|
63 | - else { |
|
61 | + } else { |
|
64 | 62 | $log = new MigrateMessage(); |
65 | 63 | } |
66 | 64 | |
@@ -106,8 +104,7 @@ discard block |
||
106 | 104 | if (!$entity->hasTranslation($langcode)) { |
107 | 105 | $entity_values = $entity->toArray(); |
108 | 106 | $translation = $entity->addTranslation($langcode, $entity_values); |
109 | - } |
|
110 | - else { |
|
107 | + } else { |
|
111 | 108 | $translation = $entity->getTranslation($langcode); |
112 | 109 | } |
113 | 110 |