/** * Get the legend of the fieldset. * * @return string */ public function getLegend() { if (!isset($this->legend)) { $this->legend = new Legend(); } return $this->legend->setContent(function () { return $this->getOption('legend'); }); }