You are here

public function StorageFilterInterface::filterCreateCollection in Config Filter 8.2

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

Allows the filter to react on creating a collection on the storage.

A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection name identifies the current collection used.

Parameters

string $collection: The collection name. Valid collection names conform to the following regex [a-zA-Z_.]. A storage does not need to have a collection set. However, if a collection is set, then the storage should use it to store configuration in a way that allows retrieval of configuration for a particular collection.

Return value

\Drupal\config_filter\Config\StorageFilterInterface|null Return a filter that should participate in the collection. This allows filters to act on different collections. Note that a new instance of the filter should be created rather than returning $this directly.

File

src/Config/StorageFilterInterface.php, line 195

Class

StorageFilterInterface
Interface StorageFilterInterface.

Namespace

Drupal\config_filter\Config

Code

public function filterCreateCollection($collection);