Thanks for the great module!

admin/config/development/config_log, field "Configuration entity names to ignore"

The description says:

One configuration name per line.
Examples:

user.settings
views.settings
contact.settings

This seems to suggest each individual config name should be listed.

Nevertheless, the code seems to suggest that * wildcards are supported:

public function isIgnored($config_name) {
    $ignored_entities = $this->configFactory->get('config_log.settings')->get('log_ignored_config');
    if (!empty($ignored_entities)) {
      foreach ($ignored_entities as $ignore) {
        $pattern = '/^' . preg_quote($ignore, '/') . '$/';
        $pattern = str_replace('\*', '.*', $pattern);
        if (preg_match($pattern, $config_name)) {
          return TRUE;
        }
      }
    }
    return FALSE;
  }

So e.g.

user.*
*.settings

Is this correct and if this is the case, could the documentation be updated? Thanks!

Comments

jvdkolk created an issue. See original summary.

nagy.balint’s picture

It seems to be the case.

  • nagy.balint committed 6881c720 on 4.x
    fix: #3575929 Document ignore list wildcards (?)
    
    By: jvdkolk
    By: nagy....
nagy.balint’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.