@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $links_raw = explode(',', $value); |
| 34 | 34 | $links = []; |
| 35 | 35 | foreach ($links_raw as $link) { |
| 36 | - list($uri,$title) = explode('|', $link); |
|
| 36 | + list($uri, $title) = explode('|', $link); |
|
| 37 | 37 | $links[] = [ |
| 38 | 38 | 'uri' => $uri, |
| 39 | 39 | 'title' => $title, |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | // Point source path to local CSV file. |
| 58 | 58 | if ($local_csv == TRUE) { |
| 59 | 59 | $source = $migration->get('source'); |
| 60 | - $source['path'] = $path . $prefix . "." . $entity_type . "." . $type . '.csv'; |
|
| 60 | + $source['path'] = $path . $prefix . "." . $entity_type . "." . $type . '.csv'; |
|
| 61 | 61 | // Set new source and process modifications. |
| 62 | 62 | $migration->set('source', $source); |
| 63 | 63 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | // Write YAML to a file. |
| 52 | - $panels_file = $base_path . '/data/panelizer.panels_display.node.'.$node->uuid() . '.yml'; |
|
| 52 | + $panels_file = $base_path . '/data/panelizer.panels_display.node.' . $node->uuid() . '.yml'; |
|
| 53 | 53 | $yaml = \Symfony\Component\Yaml\Yaml::dump($node->panelizer->panels_display, 99, 2); |
| 54 | 54 | file_put_contents($panels_file, $yaml); |
| 55 | 55 | |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | drupal_set_message(t('Successfully exported Panelizer display for Node @nid to @panels_file', ['@nid' => $node->id(), '@panels_file' => $panels_file])); |
| 57 | 57 | return TRUE; |
| 58 | - } |
|
| 59 | - else { |
|
| 58 | + } else { |
|
| 60 | 59 | drupal_set_message(t('The given Node is not Panelized.'), 'error'); |
| 61 | 60 | return FALSE; |
| 62 | 61 | } |