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
- class \Drupal\backup_migrate\Core\Plugin\PluginBase implements ConfigurableInterface, PluginInterface uses ConfigurableTrait
- class \Drupal\backup_migrate\Core\Filter\FileExcludeFilter
- class \Drupal\backup_migrate\Drupal\Filter\DrupalPublicFileExcludeFilter
- class \Drupal\backup_migrate\Core\Filter\FileExcludeFilter
Expanded class hierarchy of DrupalPublicFileExcludeFilter
File
- src/
Drupal/ Filter/ DrupalPublicFileExcludeFilter.php, line 13
Namespace
Drupal\backup_migrate\Drupal\FilterView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableTrait:: |
protected | property | The object's configuration object. | |
ConfigurableTrait:: |
protected | property | The initial configuration. | |
ConfigurableTrait:: |
public | function | Get a specific value from the configuration. | |
ConfigurableTrait:: |
public | function | Get the configuration object for this item. | |
ConfigurableTrait:: |
public | function | Get any validation errors in the config. | |
ConfigurableTrait:: |
public | function | Set the configuration for all plugins. | 1 |
ConfigurableTrait:: |
public | function | 2 | |
DrupalPublicFileExcludeFilter:: |
public | function |
Get the default values for the plugin. Overrides FileExcludeFilter:: |
|
FileExcludeFilter:: |
public | property | A cache of compiled patterns. | |
FileExcludeFilter:: |
public | function | The 'beforeDbTableBackup' plugin op. | |
FileExcludeFilter:: |
private | function | Convert an array of glob patterns to an array of regex patterns. | |
FileExcludeFilter:: |
public | function |
Get a definition for user-configurable settings. Overrides ConfigurableTrait:: |
|
FileExcludeFilter:: |
private | function | Match a path to the list of exclude patterns. | |
PluginBase:: |
public | function |
What is the weight of the given operation for this plugin. Overrides PluginInterface:: |
|
PluginBase:: |
public | function |
Get a list of supported operations and their weight. Overrides PluginInterface:: |
8 |
PluginBase:: |
public | function |
Does this plugin implement the given operation. Overrides PluginInterface:: |
|
TranslatableTrait:: |
protected | property | ||
TranslatableTrait:: |
public | function | ||
TranslatableTrait:: |
public | function | Translate the given string if there is a translator service available. |