function ConfigSchemaChecker::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker::__construct()
  2. 10 core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker::__construct()
  3. 11.x core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker::__construct()

Constructs the ConfigSchemaChecker object.

Parameters

\Drupal\Core\Config\TypedConfigManagerInterface $typed_manager: The typed config manager.

string[] $exclude: An array of config object names that are excluded from schema checking.

File

core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php, line 58

Class

ConfigSchemaChecker
Listens to the config save event and validates schema.

Namespace

Drupal\Core\Config\Development

Code

public function __construct(TypedConfigManagerInterface $typed_manager, array $exclude = []) {
    $this->typedManager = $typed_manager;
    $this->exclude = $exclude;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.