DrupalPublicFilesSource.php in Backup and Migrate 5.0.x
Namespace
Drupal\backup_migrate\Drupal\SourceFile
src/Drupal/Source/DrupalPublicFilesSource.phpView source
<?php
namespace Drupal\backup_migrate\Drupal\Source;
use Drupal\backup_migrate\Core\Config\Config;
use Drupal\backup_migrate\Core\Source\FileDirectorySource;
/**
*
*
* @package Drupal\backup_migrate\Drupal\Source
*/
class DrupalPublicFilesSource extends FileDirectorySource {
/**
* Get the default values for the plugin.
*
* @return \Drupal\backup_migrate\Core\Config\Config
*/
public function configDefaults() {
$config = [
'directory' => 'public://',
];
return new Config($config);
}
}
Classes
Name | Description |
---|---|
DrupalPublicFilesSource | @package Drupal\backup_migrate\Drupal\Source |