FormConfigBuilder::validateName()

static validateName(string|int $name)

Validates whether the given variable is a valid form name.

Parameters

string|int $name The tested form name

Exceptions

UnexpectedTypeException If the name is not a string or an integer.
InvalidArgumentException If the name contains invalid characters.
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.