/** * @inheritdoc */ public function removeChild($key) { if ($this->getChild($key)) { $this->form->remove($key); return parent::removeChild($key); } return $this; }