public function FileDirectorySource::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/ Source/ FileDirectorySource.php, line 261
Class
- FileDirectorySource
- @package Drupal\backup_migrate\Core\Source
Namespace
Drupal\backup_migrate\Core\SourceCode
public function configSchema(array $params = []) {
$schema = [];
// Init settings.
if ($params['operation'] == 'initialize') {
$schema['fields']['directory'] = [
'type' => 'text',
'title' => $this
->t('Directory Path'),
];
}
return $schema;
}