/** * Checks if children of an element are valid * @param Element|null $element leave it null to check the current element or give an element instance to check it */ public function childrenAreValid(Element $element = null) { if (null === $element) { $element = $this->element; } return $this->formContext->childrenAreValid($element); }