Airship\Cabin\Bridge\Landing\Cabins::getCabinsMotifs PHP Method

getCabinsMotifs() protected method

Get all of the motifs that belong to a particular cabin
protected getCabinsMotifs ( string $cabin ) : array
$cabin string
return array
    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;
    }