/** * Get the evaluated content of the object. * * @return string */ public function render() { $content = $this->renderContent(); // Flush all sections when the view is rendered. $this->factory->flushSectionsIfDoneRendering(); return $content; }