public function ConfigInspectorController::getRawData in Configuration Inspector 8
Raw configuration data inspection.
Parameters
string $name: Configuration name.
Return value
array A render array for a raw dump view.
1 string reference to 'ConfigInspectorController::getRawData'
File
- src/
Controller/ ConfigInspectorController.php, line 262
Class
- ConfigInspectorController
- Defines a controller for the config_inspector module.
Namespace
Drupal\config_inspector\ControllerCode
public function getRawData($name) {
$data = $this->configInspectorManager
->getConfigData($name);
$output = [
'#title' => $this
->t('Raw configuration data for %name', [
'%name' => $name,
]),
'config' => $this
->formatData($data, 'Configuration data'),
'schema' => $this
->formatData(NULL, 'Configuration schema'),
'validation' => $this
->formatData(TRUE, 'Configuration validation'),
];
if ($this->configInspectorManager
->hasSchema($name)) {
$definition = $this->configInspectorManager
->getDefinition($name);
$output['schema'] = $this
->formatData($definition, 'Configuration schema');
$result = $this->configInspectorManager
->checkValues($name);
if (is_array($result)) {
$output['validation'] = $this
->formatData($result, 'Configuration validation');
}
}
return $output;
}