eZ\Publish\Core\FieldType\Image\IO\Legacy::setPrefixes PHP Method

setPrefixes() private method

Computes the paths to published & draft images path using the options from the provider.
private setPrefixes ( )
    private function setPrefixes()
    {
        $pathArray = array($this->optionsProvider->getVarDir());
        // The storage dir itself might be null
        if ($storageDir = $this->optionsProvider->getStorageDir()) {
            $pathArray[] = $storageDir;
        }
        $this->draftPrefix = implode('/', array_merge($pathArray, array($this->optionsProvider->getDraftImagesDir())));
        $this->publishedPrefix = implode('/', array_merge($pathArray, array($this->optionsProvider->getPublishedImagesDir())));
    }