public function ConfigInspectorManager::convertConfigElementToList in Configuration Inspector 8
Gets all contained typed data properties as plain array.
Parameters
array|object $schema: An array of config elements with key.
Return value
array List of Element objects indexed by full name (keys with dot notation).
File
- src/
ConfigInspectorManager.php, line 110
Class
- ConfigInspectorManager
- Manages plugins for configuration translation mappers.
Namespace
Drupal\config_inspectorCode
public function convertConfigElementToList($schema) {
$list = [];
foreach ($schema as $key => $element) {
if ($element instanceof Element) {
$list[$key] = $element;
foreach ($this
->convertConfigElementToList($element) as $sub_key => $value) {
$list[$key . '.' . $sub_key] = $value;
}
}
else {
$list[$key] = $element;
}
}
return $list;
}