Backend\Modules\Extensions\Actions\UploadTheme::extractFolderNameBasedOnInfoFile PHP Метод

extractFolderNameBasedOnInfoFile() приватный Метод

private extractFolderNameBasedOnInfoFile ( string $infoFilePath ) : string
$infoFilePath string
Результат string
    private function extractFolderNameBasedOnInfoFile($infoFilePath)
    {
        $pathParts = explode('/', $infoFilePath);
        if (count($pathParts) > 1) {
            return $pathParts[0];
        }
        return null;
    }