You are here

public static function ContentSyncCommands::processFilesOption in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 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\Commands

Code

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;
}