src/CoreBundle/Assets/IconBuilder.php
public function convertValueToPath($varValue, $fallback)
    {
        if (Validator::isUuid($varValue)) {
            $model = $this->filesAdapter->findByPk($varValue);
            if ($model !== null && file_exists($this->rootPath . '/' . $model->path)) {
                return $model->path;
            }
            return $fallback;
        }
        if (file_exists($varValue)) {
            return $varValue;
        }

        return $fallback;
    }
public function convertValueToPath($varValue, $fallback)
    {
        if (Validator::isUuid($varValue)) {
            $model = $this->filesAdapter->findByPk($varValue);
            if ($model !== null && file_exists($this->rootPath . '/' . $model->path)) {
                return $model->path;
            }
            return $fallback;
        }
        if (file_exists($varValue)) {
            return $varValue;
        }

        return $fallback;
    }
Translate the file ID to file path.

@param string $varValue The file id.
@param string $fallback The fallback file path.

@return string