StorageFilter.php

  1. 8.0.x lib/Drush/Config/StorageFilter.php
  2. master lib/Drush/Config/StorageFilter.php

Definition of Drush\Config\StorageFilter.

Namespace

Drush\Config

Interfaces

Namesort descending Description
StorageFilter

File

lib/Drush/Config/StorageFilter.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Definition of Drush\Config\StorageFilter.
  5. */
  6. namespace Drush\Config;
  7. use Drupal\Core\Config\StorageInterface;
  8. interface StorageFilter {
  9. /**
  10. * Filters configuration data after it is read from storage.
  11. *
  12. * @param string $name
  13. * The name of a configuration object to load.
  14. * @param array $data
  15. * The configuration data to filter.
  16. *
  17. * @return array $data
  18. * The filtered data.
  19. */
  20. public function filterRead($name, $data);
  21. /**
  22. * Filter configuration data before it is written to storage.
  23. *
  24. * @param string $name
  25. * The name of a configuration object to save.
  26. * @param array $data
  27. * The configuration data to filter.
  28. * @param StorageInterface
  29. * The storage object that the filtered data will be
  30. * written to. Provided in case the filter needs to
  31. * read the existing configuration before writing it.
  32. *
  33. * @return array $data
  34. * The filtered data.
  35. */
  36. public function filterWrite($name, array $data, StorageInterface $storage);
  37. }