public function ChosenLibCommands::drush_move_dir in Chosen 3.0.x
Same name and namespace in other branches
- 8.2 modules/chosen_lib/src/Commands/ChosenLibCommands.php \Drupal\chosen_lib\Commands\ChosenLibCommands::drush_move_dir()
Parameters
string $src: The origin filename or directory.
string $dest: The new filename or directory.
Return value
bool
1 call to ChosenLibCommands::drush_move_dir()
- ChosenLibCommands::plugin in modules/
chosen_lib/ src/ Commands/ ChosenLibCommands.php - Download and install the Chosen plugin.
File
- modules/
chosen_lib/ src/ Commands/ ChosenLibCommands.php, line 159
Class
- ChosenLibCommands
- A Drush commandfile.
Namespace
Drupal\chosen_lib\CommandsCode
public function drush_move_dir($src, $dest) {
$fileservice = \Drupal::service('file_system');
$fileservice
->move($src, $dest, TRUE);
return TRUE;
}