|
@@ -22,7 +22,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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; |
Please login to merge, or discard this patch.