Goose\Modules\Extractors\MetaExtractor::getMetaDescription PHP 메소드

getMetaDescription() 개인적인 메소드

If the article has meta description set in the source, use that
private getMetaDescription ( ) : string
리턴 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);
    }