src/Ease/Html/FieldSet.php
public function finalize()
    {
        if ($this->legend) {
            if (is_object(reset($this->pageParts))) {
                reset($this->pageParts)->pageParts = [$this->legend];
            } else {
                array_unshift($this->pageParts, $this->legendTag);
                reset($this->pageParts)->pageParts = [$this->legend];
            }
        }
    }
public function finalize()
    {
        if ($this->legend) {
            if (is_object(reset($this->pageParts))) {
                reset($this->pageParts)->pageParts = [$this->legend];
            } else {
                array_unshift($this->pageParts, $this->legendTag);
                reset($this->pageParts)->pageParts = [$this->legend];
            }
        }
    }
Vložení legendy.