/** * Get the block content * * @return string */ public function getContent() { // set path to template if the widget didnt return any data if ($this->output === null) { $this->output = $this->object->getContent(); } // return possible output return $this->output; }