Newscoop\Service\Implementation\ThemeServiceLocalFileSystem::toFullPath PHP Метод

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

Provides the full path for a theme.
public toFullPath ( Theme | string $theme, string $file = '' ) : string
$theme Newscoop\Entity\Theme | string The Theme or path, *(not null not empty).
$file string Optional a file to be appended to the path.
Результат string The full path to the theme and file if is the case.
    public function toFullPath($theme, $file = '')
    {
        if ($theme instanceof Theme) {
            return $this->themesFolder . $theme->getPath() . $file;
        }
        return $this->themesFolder . $theme . $file;
    }