@@ -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; |
@@ -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'], |