public function SplitFilter::filterDeleteAll in Configuration Split 8
File
- src/
Plugin/ ConfigFilter/ SplitFilter.php, line 290
Class
- SplitFilter
- Provides a SplitFilter.
Namespace
Drupal\config_split\Plugin\ConfigFilterCode
public function filterDeleteAll($prefix, $delete) {
if ($delete && $this->secondaryStorage) {
try {
$this->secondaryStorage
->deleteAll($prefix);
} catch (\UnexpectedValueException $exception) {
// The file storage tries to remove directories of collections. But this
// fails if the directory doesn't exist. So everything is actually fine.
}
}
if (!empty($this
->getGraylist())) {
// If the split uses the graylist feature delete individually.
return FALSE;
}
return $delete;
}