public static function ContentSyncCommands::processFilesOption in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x src/Commands/ContentSyncCommands.php \Drupal\content_sync\Commands\ContentSyncCommands::processFilesOption()
Processes 'files' option.
Parameters
array $options: The command options.
Return value
string Processed 'files' option value.
1 call to ContentSyncCommands::processFilesOption()
- ContentSyncCommands::export in src/
Commands/ ContentSyncCommands.php - Export Drupal content to a directory.
File
- src/
Commands/ ContentSyncCommands.php, line 459
Class
- ContentSyncCommands
- A Drush commandfile.
Namespace
Drupal\content_sync\CommandsCode
public static function processFilesOption($options) {
$include_files = !empty($options['files']) ? $options['files'] : 'folder';
if (!in_array($include_files, [
'folder',
'base64',
])) {
$include_files = 'none';
}
return $include_files;
}