public static function getAddonTemplateFilePath(string $path, string $addonNameOrId = null)
    {
        if ($addonNameOrId != null) {
            $addon = self::getAddonHavingComponentWithIdentifier($addonNameOrId);
            return $addon->getTemplateFilePath($path);
        }
        
        $addons = self::getAddons();
        foreach ($addons as &$addon) {
            if (!is_null($templateFilePath = $addon->getTemplateFilePath($path))) {
                return $templateFilePath;
            }
        }
        
        return false;
    }
public static function getAddonTemplateFilePath(string $path, string $addonNameOrId = null)
    {
        if ($addonNameOrId != null) {
            $addon = self::getAddonHavingComponentWithIdentifier($addonNameOrId);
            return $addon->getTemplateFilePath($path);
        }
        
        $addons = self::getAddons();
        foreach ($addons as &$addon) {
            if (!is_null($templateFilePath = $addon->getTemplateFilePath($path))) {
                return $templateFilePath;
            }
        }
        
        return false;
    }
public static function getAddonTemplateFilePath ( string $ path , string $ addonNameOrId = null ) { if ( $ addonNameOrId != null ) { $ addon = self :: getAddonHavingComponentWithIdentifier ( $ addonNameOrId ) ; return $ addon -> getTemplateFilePath ( $ path ) ; } $ addons = self :: getAddons ( ) ; foreach ( $ addons as & $ addon ) { if ( ! is_null ( $ templateFilePath = $ addon -> getTemplateFilePath ( $ path ) ) ) { return $ templateFilePath ; } } return false ; }
Find a template among all configured addons or in a specific addon.

@param string $path
Relative path of the template to find.

@param string $addonNameOrId
[optional]
Identifier of a specific addon to search for the template.

@return string Absolute path to the template if found.
Find a template among all configured addons or in a specific addon .