src/Charcoal/Cms/MetatagTrait.php
public function generateDefaultMetaTags()
    {
        if ($this->isEmptyMeta($this->metaTitle)) {
            $this->setMetaTitle($this->defaultMetaTitle());
        }
        if ($this->isEmptyMeta($this->metaDescription)) {
            $this->setMetaDescription($this->defaultMetaDescription());
        }
        if ($this->isEmptyMeta($this->metaImage)) {
            $this->setMetaImage($this->defaultMetaImage());
        }
        return $this;
    }
public function generateDefaultMetaTags()
    {
        if ($this->isEmptyMeta($this->metaTitle)) {
            $this->setMetaTitle($this->defaultMetaTitle());
        }
        if ($this->isEmptyMeta($this->metaDescription)) {
            $this->setMetaDescription($this->defaultMetaDescription());
        }
        if ($this->isEmptyMeta($this->metaImage)) {
            $this->setMetaImage($this->defaultMetaImage());
        }
        return $this;
    }
public function generateDefaultMetaTags ( ) { if ( $ this -> isEmptyMeta ( $ this -> metaTitle ) ) { $ this -> setMetaTitle ( $ this -> defaultMetaTitle ( ) ) ; } if ( $ this -> isEmptyMeta ( $ this -> metaDescription ) ) { $ this -> setMetaDescription ( $ this -> defaultMetaDescription ( ) ) ; } if ( $ this -> isEmptyMeta ( $ this -> metaImage ) ) { $ this -> setMetaImage ( $ this -> defaultMetaImage ( ) ) ; } return $ this ; }
Generates the default metatags for the current object.
Prevents some problem where the defaultMetaTag method
content isn't set at the moment of setting the meta.
Should be called on preSave and preUpdate of the object.

@return self $this.
Generates the default metatags for the current object . Prevents some problem where the defaultMetaTag method content isn t set at the moment of setting the meta . Should be called on preSave and preUpdate of the object .