You are here

public function IgnoreFilter::filterRead in Config Ignore 8.2

File

src/Plugin/ConfigFilter/IgnoreFilter.php, line 186

Class

IgnoreFilter
Provides a ignore filter that reads partly from the active storage.

Namespace

Drupal\config_ignore\Plugin\ConfigFilter

Code

public function filterRead($name, $data) {

  // Read from the active storage when the name is in the ignored list.
  if ($this
    ->matchConfigName($name)) {
    return $this
      ->activeRead($name, $data);
  }
  return $data;
}