/** * Adds a child view. * * @param FormView $child The child view to add. * * @return FormView The current view */ public function addChild(FormView $child) { $this->children[$child->getName()] = $child; return $this; }