SchemaCheckTrait
trait SchemaCheckTrait (View source)
Provides a trait for checking configuration schema.
Properties
| protected Element | $schema | The config schema wrapper object for the configuration object under test. |
|
| protected string | $configName | The configuration object name under test. |
Methods
array|bool
checkConfigSchema(TypedConfigManagerInterface $typed_config, string $config_name, array $config_data)
Checks the TypedConfigManager has a valid schema for the configuration.
array
checkValue(string $key, mixed $value)
Helper method to check data type.
Details
array|bool
checkConfigSchema(TypedConfigManagerInterface $typed_config, string $config_name, array $config_data)
Checks the TypedConfigManager has a valid schema for the configuration.
protected array
checkValue(string $key, mixed $value)
Helper method to check data type.