You are here

public function DirectoryDestination::configSchema in Backup and Migrate 5.0.x

Get a definition for user-configurable settings.

Parameters

array $params:

Return value

array

Overrides ConfigurableTrait::configSchema

File

src/Core/Destination/DirectoryDestination.php, line 43

Class

DirectoryDestination
@package Drupal\backup_migrate\Core\Destination

Namespace

Drupal\backup_migrate\Core\Destination

Code

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

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