Common\Doctrine\Entity\Meta::getTitle PHP Method

getTitle() public method

public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->title;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param Meta $meta
  */
 protected function setMeta(Meta $meta)
 {
     $this->header->setPageTitle($meta->getTitle(), $meta->isTitleOverwrite());
     $this->header->addMetaDescription($meta->getDescription(), $meta->isDescriptionOverwrite());
     $this->header->addMetaKeywords($meta->getKeywords(), $meta->isKeywordsOverwrite());
     if ($meta->hasSEOFollow()) {
         $this->header->addMetaData(['name' => 'robots', 'content' => $meta->getSEOFollow()]);
     }
     if ($meta->hasSEOIndex()) {
         $this->header->addMetaData(['name' => 'robots', 'content' => $meta->getSEOIndex()]);
     }
 }