You are here

public function Regex::getDefaultOption in Plug 7

Returns the name of the default option.

Override this method to define a default option.

@api

Return value

string

Overrides Constraint::getDefaultOption

See also

__construct()

File

lib/Symfony/validator/Symfony/Component/Validator/Constraints/Regex.php, line 34

Class

Regex
@Target({"PROPERTY", "METHOD", "ANNOTATION"})

Namespace

Symfony\Component\Validator\Constraints

Code

public function getDefaultOption() {
  return 'pattern';
}