Article::getLocalizedCoverImageUrl PHP Method

getLocalizedCoverImageUrl() public method

Get a full URL to the localized cover image
    function getLocalizedCoverImageUrl()
    {
        $coverImage = $this->getLocalizedCoverImage();
        if (!$coverImage) {
            return '';
        }
        $request = Application::getRequest();
        import('classes.file.PublicFileManager');
        $publicFileManager = new PublicFileManager();
        return $request->getBaseUrl() . '/' . $publicFileManager->getJournalFilesPath($this->getContextId()) . '/' . $coverImage;
    }