Symfony\Component\Form\FormConfigBuilder::isValidName
Returns whether the given variable contains a valid form name.
A name is accepted if it * is empty * starts with a letter, digit or underscore * contains only letters, digits, numbers, underscores ("_"), hyphens ("-") and colons (":")
Signature
public function isValidName(string
$name )
Parameters
$name
— string- The tested form name.
Returns
- Boolean
- Whether the name is valid.