FormConfigBuilder::isValidName()

static bool isValidName(string $name)

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 (":")

Parameters

string $name The tested form name

Return Value

bool Whether the name is valid
doc_Symfony
2016-10-28 06:17:56
Comments
Leave a Comment

Please login to continue.