1.20.x config.inc | public Config::validateData() |
Validate the full contents of the configuration data.
This method is not automatically called when Config::setData() is called. Because validation is a potentially expensive operation, you should call this only when expecting potential problems in the provided data, such as when validating user-provided imports.
Throws
File
- includes/
config.inc, line 604 - This is the API for configuration storage.
Class
- Config
- Defines the default configuration object.
Code
public function validateData() {
if (!$this->validated) {
$config_info = config_get_info($this->getName());
module_invoke_all('config_data_validate', $this, $config_info);
$this->validated = TRUE;
}
}