You are here

class DrupalPublicFileExcludeFilter in Backup and Migrate 8.4

Class DrupalPublicFileExcludeFilter.

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

@package BackupMigrate\Drupal\Filter

Hierarchy

Expanded class hierarchy of DrupalPublicFileExcludeFilter

File

src/Filter/DrupalPublicFileExcludeFilter.php, line 15

Namespace

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

  /**
   * Get the default values for the plugin.
   *
   * @return \BackupMigrate\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. These configuration options can be overriden by the config options but will not be overwritten. If the object is re-configured after construction any missing configuration options will revert to these values.
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 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 for file name exclusion.
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.