Goose\Modules\Extractors\MetaExtractor::getMetaDescription PHP Method

getMetaDescription() private method

If the article has meta description set in the source, use that
private getMetaDescription ( ) : string
return string
    private function getMetaDescription()
    {
        $desc = $this->getMetaContent($this->article()->getDoc(), 'name', 'description');
        if (empty($desc)) {
            $desc = $this->getMetaContent($this->article()->getDoc(), 'property', 'og:description');
        }
        if (empty($desc)) {
            $desc = $this->getMetaContent($this->article()->getDoc(), 'name', 'twitter:description');
        }
        return trim($desc);
    }