Pimcore\Model\Document\Page::getKeywords PHP Метод

getKeywords() публичный Метод

Устаревший:
public getKeywords ( ) : string
Результат string
    public function getKeywords()
    {
        // keywords are not supported anymore
        Logger::info("getKeywords() is deprecated and will be removed in the future!");
        return "";
    }

Usage Example

Пример #1
0
 /**
  * @param boolean $callParent
  * @return string
  */
 public function getKeywords($callParent = true)
 {
     if ($callParent) {
         return parent::getKeywords();
     }
     foreach ($this->getPagesOnPath() as $page) {
         if ($page->getKeywords()) {
             return $page->getKeywords();
         }
     }
     return '';
 }