/** * Check if the current element is valid * @return bool */ public function isValid(Element $element = null) { if (null === $element) { $element = $this->element; } return $this->formContext->elementIsValid($element); }
public function isValid() { return $this->formContext->elementIsValid($this->element); }