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

@return string
If the article has meta description set in the source use that