children = $tabs; CompositeField::__construct($tabs); } public function FieldHolder($properties = []) { // This gives us support for sub-tabs. $tag = $this->getTabSet() ? 'h2>' : 'h1>'; $retVal = ''; foreach ($this->getChildren() as $tab) { $retVal .= "<$tag" . $tab->Title() . "FieldHolder(); } return $retVal; } }