protected function RecursiveContextualValidator::normalizeGroups in Plug 7
Normalizes the given group or list of groups to an array.
Parameters
mixed $groups The groups to normalize:
Return value
array A group array
3 calls to RecursiveContextualValidator::normalizeGroups()
- RecursiveContextualValidator::validate in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveContextualValidator.php - Validates a value against a constraint or a list of constraints.
- RecursiveContextualValidator::validateProperty in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveContextualValidator.php - Validates a property of an object against the constraints specified for this property.
- RecursiveContextualValidator::validatePropertyValue in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveContextualValidator.php - Validates a value against the constraints specified for an object's property.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveContextualValidator.php, line 301
Class
- RecursiveContextualValidator
- Recursive implementation of {@link ContextualValidatorInterface}.
Namespace
Symfony\Component\Validator\ValidatorCode
protected function normalizeGroups($groups) {
if (is_array($groups)) {
return $groups;
}
return array(
$groups,
);
}