public function getContent($template = null) { if ($template !== null) { return $this->tpl->getContent($template); } return $this->tpl->getContent($this->templatePath); }
/** * Get the block content * * @param string $template * * @return string */ public function render($template = null) { // set path to template if the widget didn't return any data if ($this->output === null) { return trim($this->object->getContent($template)); } // return possible output return trim($this->output); }