You are here

class DrupalPublicFileExcludeFilter in Backup and Migrate 5.0.x

A file exclusion filter that includes Drupal's cache directories by default.

@package Drupal\backup_migrate\Drupal\Filter

Hierarchy

Expanded class hierarchy of DrupalPublicFileExcludeFilter

File

src/Drupal/Filter/DrupalPublicFileExcludeFilter.php, line 13

Namespace

Drupal\backup_migrate\Drupal\Filter
View source
class DrupalPublicFileExcludeFilter extends FileExcludeFilter {

  /**
   * Get the default values for the plugin.
   *
   * @return \Drupal\backup_migrate\Core\Config\Config
   */
  public function configDefaults() {
    $config = [
      'exclude_filepaths' => [
        'js',
        'css',
        'php',
        'styles',
        'config_*',
        '.htaccess',
      ],
    ];

    // @todo Allow modules to add their own excluded defaults.
    return new Config($config);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableTrait::$config protected property The object's configuration object.
ConfigurableTrait::$init protected property The initial configuration.
ConfigurableTrait::confGet public function Get a specific value from the configuration.
ConfigurableTrait::config public function Get the configuration object for this item.
ConfigurableTrait::configErrors public function Get any validation errors in the config.
ConfigurableTrait::setConfig public function Set the configuration for all plugins. 1
ConfigurableTrait::__construct public function 2
DrupalPublicFileExcludeFilter::configDefaults public function Get the default values for the plugin. Overrides FileExcludeFilter::configDefaults
FileExcludeFilter::$patterns public property A cache of compiled patterns.
FileExcludeFilter::beforeFileBackup public function The 'beforeDbTableBackup' plugin op.
FileExcludeFilter::compileExcludePatterns private function Convert an array of glob patterns to an array of regex patterns.
FileExcludeFilter::configSchema public function Get a definition for user-configurable settings. Overrides ConfigurableTrait::configSchema
FileExcludeFilter::matchPath private function Match a path to the list of exclude patterns.
PluginBase::opWeight public function What is the weight of the given operation for this plugin. Overrides PluginInterface::opWeight
PluginBase::supportedOps public function Get a list of supported operations and their weight. Overrides PluginInterface::supportedOps 8
PluginBase::supportsOp public function Does this plugin implement the given operation. Overrides PluginInterface::supportsOp
TranslatableTrait::$translator protected property
TranslatableTrait::setTranslator public function
TranslatableTrait::t public function Translate the given string if there is a translator service available.