FOF30\Platform\Joomla\Platform::getTemplateOverridePath PHP Метод

getTemplateOverridePath() публичный Метод

Return the absolute path to the application's template overrides directory for a specific component. We will use it to look for template files instead of the regular component directories. If the application does not have such a thing as template overrides return an empty string.
public getTemplateOverridePath ( string $component, boolean $absolute = true ) : string
$component string The name of the component for which to fetch the overrides
$absolute boolean Should I return an absolute or relative path?
Результат string The path to the template overrides directory
    public function getTemplateOverridePath($component, $absolute = true)
    {
        list($isCli, $isAdmin) = $this->isCliAdmin();
        if (!$isCli) {
            if ($absolute) {
                $path = JPATH_THEMES . '/';
            } else {
                $path = $isAdmin ? 'administrator/templates/' : 'templates/';
            }
            if (substr($component, 0, 7) == 'media:/') {
                $directory = 'media/' . substr($component, 7);
            } else {
                $directory = 'html/' . $component;
            }
            $path .= $this->getTemplate() . '/' . $directory;
        } else {
            $path = '';
        }
        return $path;
    }