You are here

public function TestSplitFilter::__construct in Config Filter 8

Same name and namespace in other branches
  1. 8.2 tests/modules/config_filter_split_test/src/Plugin/ConfigFilter/TestSplitFilter.php \Drupal\config_filter_split_test\Plugin\ConfigFilter\TestSplitFilter::__construct()

Constructs a new TestSplitFilter.

Parameters

\Drupal\Core\Config\StorageInterface $storage: The migrate storage.

string $name: The config name prefix to split.

Overrides PluginBase::__construct

File

tests/modules/config_filter_split_test/src/Plugin/ConfigFilter/TestSplitFilter.php, line 48

Class

TestSplitFilter
Provides a TestSplitFilter.

Namespace

Drupal\config_filter_split_test\Plugin\ConfigFilter

Code

public function __construct(StorageInterface $storage, $name) {
  parent::__construct([], 'config_filter_split_test', []);
  $this->storage = $storage;
  $this->name = $name;
}