Symfony\Component\Form\FormConfigBuilder::validateName
Validates whether the given variable is a valid form name.
Signature
public function validateName(string|integer
$name )
Parameters
$name
— object- The tested form name.
Errors/Exceptions
-
UnexpectedTypeException
- If the name is not a string or an integer.
-
InvalidArgumentException
- If the name contains invalid characters.