You are here

protected function DistroIgnoreFilter::matchConfigName in Config Distro 8

Match a config name against the list of ignored config.

Parameters

string $config_name: The name of the config to match against all ignored config.

Return value

bool True, if the config is to be ignored, false otherwise.

2 calls to DistroIgnoreFilter::matchConfigName()
DistroIgnoreFilter::filterExists in modules/config_distro_ignore/src/Plugin/ConfigFilter/DistroIgnoreFilter.php
DistroIgnoreFilter::filterRead in modules/config_distro_ignore/src/Plugin/ConfigFilter/DistroIgnoreFilter.php

File

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

Class

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

Namespace

Drupal\config_distro_ignore\Plugin\ConfigFilter

Code

protected function matchConfigName($config_name) {
  if (in_array($config_name, $this->configuration['all_collections'])) {
    return TRUE;
  }
  if (count($this
    ->getIgnoredHash($config_name))) {
    return TRUE;
  }
  return FALSE;
}