class ConfigSchemaChecker

Same name in this branch
  1. 8.9.x core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker
Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker
  2. 10 core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker
  3. 11.x core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker

Listens to the config save event and validates schema.

If tests have the $strictConfigSchema property set to TRUE this event listener will be added to the container and throw exceptions if configuration is invalid.

Hierarchy

Expanded class hierarchy of ConfigSchemaChecker

Deprecated

in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Core\Config\Development\ConfigSchemaChecker.

See also

\Drupal\KernelTests\KernelTestBase::register()

\Drupal\simpletest\WebTestBase::setUp()

\Drupal\simpletest\KernelTestBase::containerBuild()

File

core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php, line 21

Namespace

Drupal\Core\Config\Testing
View source
class ConfigSchemaChecker extends SchemaChecker {

}

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