Frontend\Core\Engine\Base\Block::getContent PHP Метод

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

Get parsed template content.
public getContent ( ) : string
Результат string
    public function getContent()
    {
        return $this->tpl->getContent($this->templatePath);
    }

Usage Example

Пример #1
0
 /**
  * Get the block content
  *
  * @return string
  */
 public function getContent()
 {
     // set path to template if the widget didn't return any data
     if ($this->output === null) {
         return trim($this->object->getContent());
     }
     // return possible output
     return trim($this->output);
 }