Get article intro image.

@return \Illuminate\Contracts\Routing\UrlGenerator|string
975704
public function image()
    {
        if ($image = $this->articleImage()) {
            return $image;
        }
        if ($image = $this->introImage()) {
            return $image;
        }

        return config('article.image');
    }
1051790
public function getAvatar()
    {
        $avatarUrl = null;
        $avatarWidth = 0;

        // find the biggest image
        if (!empty($this->response['pictures']['sizes']) && is_array($this->response['pictures']['sizes'])) {
            foreach ($this->response['pictures']['sizes'] as $picture) {
                if ($picture['width'] > $avatarWidth) {
                    $avatarUrl = $picture['link'];
                    $avatarWidth = $picture['width'];
                }
            }
        }

        return $avatarUrl;
    }
732358
public function getCoverImage()
    {
        if ($this->coverImage)
        {
            return $this->coverImage;
        }

        $modelName = source_model_name($this->getNodeTypeName(), true);

        $mutatables = call_user_func([$modelName, 'getMutatables']);

        foreach ($mutatables as $mutatable => $type)
        {
            if ($type === 'gallery' && ($images = $this->getTranslationAttribute($mutatable, null, true, true)))
            {
                if ($cover = get_nuclear_cover($images))
                {
                    $this->coverImage = $cover;

                    return $cover;
                }
            }

            if ($type === 'document' && ($document = $this->getTranslationAttribute($mutatable, null, true, true)))
            {
                if ($document = get_nuclear_cover($document))
                {
                    $this->coverImage = $document;

                    return $document;
                }
            }
        }

        return null;
    }
610151
public function getSlideImage()
    {
        if ($this->hasImage()) {
            
            if ($this->Image()->exists()) {
                return $this->Image();
            } elseif ($this->LinkPage()->hasMetaImage()) {
                return $this->LinkPage()->getMetaImage();
            }
            
        }
    }
838361
public function articleContent()
    {
        $content = $this->getHtmlTemplate();

        $search = [
            '{{ title }}',
            '{{ paragraph }}',
            '{{ paragraphs }}',
            '{{ words }}',
            '{{ image }}',
            '{{ sentence }}',
        ];

        $replace = [
            self::articleTitle(),
            $this->generator->paragraph(),
            nl2br($this->generator->paragraphs(rand(5, 10), true)),
            $this->generator->sentence(rand(3, 5)),
            $this->generator->imageUrl(),
            $this->generator->sentence(),
        ];

        $content = str_replace($search, $replace, $content);

        return $content;
    }
177367
public function getFirstArticle()
    {
        $oArtList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArtList->setSqlLimit(0, 1);
        $oArtList->loadRecommArticles($this->getId(), $this->_sArticlesFilter);
        $oArtList->rewind();

        return $oArtList->current();
    }
652817
protected function getImageUrl()
    {
        $imageUrl = "";

        if ($this->getImagePath()) {
            $imageUrl = $this->getImageDirUrl() . $this->getImageName();
        }

        return $imageUrl;
    }
1208595
public function getTitleUrlAttribute()
    {
        $name = $this->attributes['title'] . ' ( ' . $this->attributes['url'] . ' )';
        if ($this->parent) {
            $name .= " - {$this->parent->title}";
        }

        return $name;
    }
690660
protected function getResizedImageUrl()
    {
        $imageUrl = "";

        if ($this->getResizedImagePath()) {
            $imageUrl = $this->getImageDirUrl() . $this->getResizedImageName();
        }

        return $imageUrl;
    }
316662
public function getAbstract()
    {
        return strlen($this->content) > 400 ? StringUtils::resumeHtml($this->content, 400) : $this->content;
    }
316334
private function getImage()
    {
        $image = $this->_parser->find('#content table tr', 0)->find('td', 0)->find('img', 0);

        return $image ? $image->src : '';
    }
835833
public function getMetaImageLink()
    {
        if ($this->owner->hasMetaImage()) {
            
            if ($renderer = $this->owner->Renderer) {
                
                switch ($renderer->ImageLinksTo) {
                    
                    case BaseListComponent::IMAGE_LINK_ITEM:
                        return $this->owner->getMetaLink();
                    
                }
                
            }
            
            return $this->owner->getMetaImageURL();
            
        }
    }
411541
public function getUrlGenerator() {
		if ($this->urlGenerator === null) {
			$discovery = $this->getResourceDiscovery();
			$this->urlGenerator = $this->getPuliFactory()->createUrlGenerator($discovery);
		}

		return $this->urlGenerator;
	}
1318178
public function getUrlGenerator()
    {
        if (!$this->urlGenerator) {
            $this->urlGenerator = new DiscoveryUrlGenerator(
                $this->getPuli()->getDiscovery(),
                $this->getInstallTargetManager()->getTargets()
            );
        }

        return $this->urlGenerator;
    }
422851
public function getMainImage()
    {
        $imgUrl = false;

        if ($this->getImage() !== null) {
            $imgUrl = $this->getImage();
        }

        if (!$imgUrl) {
            foreach ($this->dom->getElementsByTagName('link') as $link) {
                /** @var \DOMElement $link */
                /*
                 * Check for the rel attribute, then check if the rel attribute is either img_src or image_src, and
                 * finally check for the existence of the href attribute, which should hold the image url.
                 */
                if ($link->hasAttribute('rel') && ($link->getAttribute('rel') === 'img_src' || $link->getAttribute('rel') === 'image_src') && $link->hasAttribute('href')) {
                    $imgUrl = $link->getAttribute('href');
                    break;
                }
            }
        }

        if (!empty($imgUrl) && $this->configuration->getFixRelativeURLs()) {
            $this->setImage($this->toAbsoluteURI($imgUrl));
        }
    }
188986
public function getEntryUri()
    {
        $product = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);

        if ($product->load($this->getEditObjectId())) {
            $seoEncoder = $this->_getEncoder();

            switch ($this->getActCatType()) {
                case 'oxvendor':
                    return $seoEncoder->getArticleVendorUri($product, $this->getEditLang());
                case 'oxmanufacturer':
                    return $seoEncoder->getArticleManufacturerUri($product, $this->getEditLang());
                default:
                    if ($this->getActCatId()) {
                        return $seoEncoder->getArticleUri($product, $this->getEditLang());
                    } else {
                        return $seoEncoder->getArticleMainUri($product, $this->getEditLang());
                    }
            }
        }
    }
532552
public function getParsedIntroAttribute()
	{
		$intro = $this->getIntroAttribute();

		if (Config::get('core::wardrobe.cache'))
		{
			return Cache::rememberForever('post-intro-'.$this->attributes['id'], function() use ($intro)
			{
				return md($intro);
			});
		}

		return md($intro);
	}