You are here

DrupalPublicFilesSource.php in Backup and Migrate 5.0.x

File

src/Drupal/Source/DrupalPublicFilesSource.php
View 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

Namesort descending Description
DrupalPublicFilesSource @package Drupal\backup_migrate\Drupal\Source