You are here

public function FileDirectorySource::configSchema in Backup and Migrate 8.4

Get a definition for user-configurable settings.

Parameters

array $params:

Return value

array

Overrides ConfigurableTrait::configSchema

File

lib/backup_migrate_core/src/Source/FileDirectorySource.php, line 256

Class

FileDirectorySource
Class FileDirectorySource.

Namespace

BackupMigrate\Core\Source

Code

public function configSchema($params = []) {
  $schema = [];

  // Init settings.
  if ($params['operation'] == 'initialize') {
    $schema['fields']['directory'] = [
      'type' => 'text',
      'title' => $this
        ->t('Directory Path'),
    ];
  }
  return $schema;
}