You are here

private function Validator::resolveGroups in Plug 7

Parameters

null|string|string[] $groups:

Return value

string[]

3 calls to Validator::resolveGroups()
Validator::validate in lib/Symfony/validator/Symfony/Component/Validator/Validator.php
Validates a value.
Validator::validateProperty in lib/Symfony/validator/Symfony/Component/Validator/Validator.php
Validator::validatePropertyValue in lib/Symfony/validator/Symfony/Component/Validator/Validator.php

File

lib/Symfony/validator/Symfony/Component/Validator/Validator.php, line 231

Class

Validator
Default implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator

Code

private function resolveGroups($groups) {
  return $groups ? (array) $groups : array(
    Constraint::DEFAULT_GROUP,
  );
}