You are here

public function StorageFilterInterface::setSourceStorage in Config Filter 8.2

Same name and namespace in other branches
  1. 8 src/Config/StorageFilterInterface.php \Drupal\config_filter\Config\StorageFilterInterface::setSourceStorage()

Sets the source config storage on which the operation is performed.

The storage is given to the filter when the storage wrapper is set up, to avoid passing the storage to each of the filters so that they can read from it before writing filtered config. The storage is read-only, use the decorated storage to allow all filters to work for write operations.

Parameters

\Drupal\Core\Config\StorageInterface $storage: The storage on which the operation is performed.

File

src/Config/StorageFilterInterface.php, line 31

Class

StorageFilterInterface
Interface StorageFilterInterface.

Namespace

Drupal\config_filter\Config

Code

public function setSourceStorage(StorageInterface $storage);