private function getStructureNames($type)
{
$this->assertExists($type);
$structureNames = [];
foreach ($this->typePaths[$type] as $pathConfig) {
$structurePath = $pathConfig['path'];
// Ignore not-existing paths
if (!file_exists($structurePath)) {
continue;
}
$iterator = new \DirectoryIterator($structurePath);
foreach ($iterator as $file) {
$ext = $file->getExtension();
if ($ext !== 'xml') {
continue;
}
$structureNames[] = $file->getBasename('.' . $ext);
}
}
return $structureNames;
}