private function buildTemplateList($templatesConfig)
    {
        $templateNamespace = self::DEFAULT_TEMPLATES;
        if (is_string($templatesConfig)) {
            $templateNamespace = $templatesConfig;
        }
        $templatesList = [];
        foreach (self::$templates as $name => $extensions) {
            foreach ($extensions as $extension) {
                $file = $name.'.'.$extension;
                $templatesList[$file] = $templateNamespace.':'.$file;
            }
        }
        // TODO add resources controller traits templates ? (like new_child.html)
        if (is_array($templatesConfig)) {
            $templatesList = array_merge($templatesList, $templatesConfig);
        }
        return $templatesList;
    }
private function buildTemplateList($templatesConfig)
    {
        $templateNamespace = self::DEFAULT_TEMPLATES;
        if (is_string($templatesConfig)) {
            $templateNamespace = $templatesConfig;
        }
        $templatesList = [];
        foreach (self::$templates as $name => $extensions) {
            foreach ($extensions as $extension) {
                $file = $name.'.'.$extension;
                $templatesList[$file] = $templateNamespace.':'.$file;
            }
        }
        // TODO add resources controller traits templates ? (like new_child.html)
        if (is_array($templatesConfig)) {
            $templatesList = array_merge($templatesList, $templatesConfig);
        }
        return $templatesList;
    }
private function buildTemplateList ( $ templatesConfig ) { $ templateNamespace = self :: DEFAULT_TEMPLATES ; if ( is_string ( $ templatesConfig ) ) { $ templateNamespace = $ templatesConfig ; } $ templatesList = [ ] ; foreach ( self :: $ templates as $ name => $ extensions ) { foreach ( $ extensions as $ extension ) { $ file = $ name . '.' . $ extension ; $ templatesList [ $ file ] = $ templateNamespace . ':' . $ file ; } } // TODO add resources controller traits templates ? (like new_child.html) if ( is_array ( $ templatesConfig ) ) { $ templatesList = array_merge ( $ templatesList , $ templatesConfig ) ; } return $ templatesList ; }
Builds the templates list.

@param mixed $templatesConfig
@return array
Builds the templates list .