protected function getCabinsMotifs(string $cabin) : array
{
$config = \Airship\loadJSON(ROOT . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'Cabin' . DIRECTORY_SEPARATOR . $cabin . DIRECTORY_SEPARATOR . 'motifs.json');
$motifs = [];
foreach ($config as $name => $conf) {
$json = \Airship\loadJSON(ROOT . '/Motifs/' . $conf['path'] . '/motif.json');
$motifs[$name] = ['path' => $conf['path'], 'config' => $json];
}
return $motifs;
}