5 * Definition of Drush\Config\StorageFilter.
8 namespace Drush\Config;
10 use Drupal\Core\Config\StorageInterface;
12 interface StorageFilter {
15 * Filters configuration data after it is read from storage.
18 * The name of a configuration object to load.
20 * The configuration data to filter.
25 public function filterRead($name, $data);
28 * Filter configuration data before it is written to storage.
31 * The name of a configuration object to save.
33 * The configuration data to filter.
34 * @param StorageInterface
35 * The storage object that the filtered data will be
36 * written to. Provided in case the filter needs to
37 * read the existing configuration before writing it.
42 public function filterWrite($name, array $data, StorageInterface $storage);