You are here

public function SplitFilter::filterCreateCollection in Configuration Split 8

File

src/Plugin/ConfigFilter/SplitFilter.php, line 312

Class

SplitFilter
Provides a SplitFilter.

Namespace

Drupal\config_split\Plugin\ConfigFilter

Code

public function filterCreateCollection($collection) {
  if ($this->secondaryStorage) {
    $filter = new static($this->configuration, $this->pluginId, $this->pluginDefinition, $this->manager, $this->secondaryStorage
      ->createCollection($collection));

    // Share the filter lists across collections.
    $filter->filterLists = $this->filterLists;
    return $filter;
  }
  return $this;
}