interface StorageFilter

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

Namespace

Drush\Config

Implemented by

Hierarchy

Expanded class hierarchy of StorageFilter

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
StorageFilter::filterRead public function Filters configuration data after it is read from storage.
StorageFilter::filterWrite public function Filter configuration data before it is written to storage.

File

lib/Drush/Config/StorageFilter.php, line 12
Definition of Drush\Config\StorageFilter.

View source
interface StorageFilter {

  /**
   * Filters configuration data after it is read from storage.
   *
   * @param string $name
   *   The name of a configuration object to load.
   * @param array $data
   *   The configuration data to filter.
   *
   * @return array $data
   *   The filtered data.
   */
  public function filterRead($name, $data);

  /**
   * Filter configuration data before it is written to storage.
   *
   * @param string $name
   *   The name of a configuration object to save.
   * @param array $data
   *   The configuration data to filter.
   * @param StorageInterface
   *   The storage object that the filtered data will be
   *   written to.  Provided in case the filter needs to
   *   read the existing configuration before writing it.
   *
   * @return array $data
   *   The filtered data.
   */
  public function filterWrite($name, array $data, StorageInterface $storage);

}