src/BackendIntegration/TemplateList.php
public function getTemplatesForBase($templateBaseName)
    {
        $allTemplates = array_replace_recursive(
            $this->fetchTemplatesFromThemes($templateBaseName),
            $this->fetchRootTemplates($templateBaseName),
            $this->fetchTemplatesFromResourceDirectories($templateBaseName)
        );

        $templateList = array();
        foreach ($allTemplates as $template => $themeList) {
            $templateList[$template] = sprintf(
                $GLOBALS['TL_LANG']['MSC']['template_in_theme'],
                $template,
                implode(', ', $themeList)
            );
        }

        ksort($templateList);

        return array_unique($templateList);
    }
public function getTemplatesForBase($templateBaseName)
    {
        $allTemplates = array_replace_recursive(
            $this->fetchTemplatesFromThemes($templateBaseName),
            $this->fetchRootTemplates($templateBaseName),
            $this->fetchTemplatesFromResourceDirectories($templateBaseName)
        );

        $templateList = array();
        foreach ($allTemplates as $template => $themeList) {
            $templateList[$template] = sprintf(
                $GLOBALS['TL_LANG']['MSC']['template_in_theme'],
                $template,
                implode(', ', $themeList)
            );
        }

        ksort($templateList);

        return array_unique($templateList);
    }
Fetch the template group for the detail view of the current MetaModel module.

@param string $templateBaseName The base name for the templates to retrieve.

@return array

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)