Пример #1
1
 /**
  * @return MetaEntity
  */
 public function getMetaEntity()
 {
     $this->validate();
     return MetaEntity::fromBackendMeta($this);
 }
Пример #2
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()]);
     }
 }