code/SEO_Metadata_SiteTree_DataExtension.php
public function GenerateDescription()
    {
        if ($this->owner->MetaDescription) {
            return $this->owner->MetaDescription;
        } else {
            return $this->owner->GenerateDescriptionFromContent();
        }
    }
public function GenerateDescription()
    {
        if ($this->owner->MetaDescription) {
            return $this->owner->MetaDescription;
        } else {
            return $this->owner->GenerateDescriptionFromContent();
        }
    }
public function GenerateDescription ( ) { if ( $ this -> owner -> MetaDescription ) { return $ this -> owner -> MetaDescription ; } else { return $ this -> owner -> GenerateDescriptionFromContent ( ) ; } }
Generates description from the page `MetaDescription`, or the first paragraph of the `Content` attribute.

@return string|null
Generates description from the page MetaDescription or the first paragraph of the Content attribute .