class ConfigSchemaChecker
Same name in this branch
- 8.9.x core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker
Same name in other branches
- 9 core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker
- 10 core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php \Drupal\Core\Config\Development\ConfigSchemaChecker
- 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
- class \Drupal\Core\Config\Development\ConfigSchemaChecker implements \Symfony\Component\EventDispatcher\EventSubscriberInterface uses \Drupal\Core\Config\Schema\SchemaCheckTrait
- class \Drupal\Core\Config\Testing\ConfigSchemaChecker extends \Drupal\Core\Config\Development\ConfigSchemaChecker
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\TestingView source
class ConfigSchemaChecker extends SchemaChecker {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.