public function validationErrors(FormRuntime $formRuntime, RootRenderableInterface $element): array
    {
        return $this->getValidationResult($formRuntime, $element)->getErrors();
    }
public function validationErrors(FormRuntime $formRuntime, RootRenderableInterface $element): array
    {
        return $this->getValidationResult($formRuntime, $element)->getErrors();
    }
public function validationErrors ( FormRuntime $ formRuntime , RootRenderableInterface $ element ) : array { return $ this -> getValidationResult ( $ formRuntime , $ element ) -> getErrors ( ) ; }
Returns all validation errors for a given Form Element

@param FormRuntime $formRuntime
@param RootRenderableInterface $element
@return array
Returns all validation errors for a given Form Element