/** * @param string|Element $element * @return Form */ public function removeElement($element) { if (!$element instanceof Element) { $element = $this->getElement($element); } if ($element !== null) { $this->elements->removeElement($element); } return $this; }