You are here

public function DistroIgnoreFilter::filterRead in Config Distro 8

File

modules/config_distro_ignore/src/Plugin/ConfigFilter/DistroIgnoreFilter.php, line 58

Class

DistroIgnoreFilter
Provides a ignore filter that resets config to the active one.

Namespace

Drupal\config_distro_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;
}