Loading src/Commands/SmartDateDrushCommands.php +9 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,15 @@ class SmartDateDrushCommands extends DrushCommands { * @option langcode * Language code to store. */ public function migrate($bundle, $dest, $source_start, $source_end = NULL, $source_all_day = NULL, array $options = ['clear' => FALSE, 'entity' => 'node', 'default_duration' => 0, 'langcode' => NULL]) { public function migrate($bundle, $dest, $source_start, $source_end = NULL, $source_all_day = NULL, array $options = NULL) { if (!$options) { $options = [ 'clear' => FALSE, 'entity' => 'node', 'default_duration' => 0, 'langcode' => NULL, ]; } // @todo Sanitize provide input. $entity = $options['entity']; $dest_table = $entity . '__' . $dest; Loading Loading
src/Commands/SmartDateDrushCommands.php +9 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,15 @@ class SmartDateDrushCommands extends DrushCommands { * @option langcode * Language code to store. */ public function migrate($bundle, $dest, $source_start, $source_end = NULL, $source_all_day = NULL, array $options = ['clear' => FALSE, 'entity' => 'node', 'default_duration' => 0, 'langcode' => NULL]) { public function migrate($bundle, $dest, $source_start, $source_end = NULL, $source_all_day = NULL, array $options = NULL) { if (!$options) { $options = [ 'clear' => FALSE, 'entity' => 'node', 'default_duration' => 0, 'langcode' => NULL, ]; } // @todo Sanitize provide input. $entity = $options['entity']; $dest_table = $entity . '__' . $dest; Loading