You are here

protected function ConfigReadonlyWhitelistTrait::getWhitelistPatterns in Configuration Read-only mode 8

Get whitelist patterns.

Return value

string[] The whitelist patterns.

1 call to ConfigReadonlyWhitelistTrait::getWhitelistPatterns()
ConfigReadonlyWhitelistTrait::matchesWhitelistPattern in src/ConfigReadonlyWhitelistTrait.php
Check if the given name matches any whitelist pattern.

File

src/ConfigReadonlyWhitelistTrait.php, line 44

Class

ConfigReadonlyWhitelistTrait
Trait ConfigReadonlyWhitelistTrait.

Namespace

Drupal\config_readonly

Code

protected function getWhitelistPatterns() {
  if (!$this->patterns) {
    $this->patterns = $this->moduleHandler
      ->invokeAll('config_readonly_whitelist_patterns');
  }
  return $this->patterns;
}