You are here

private function Validator::resolveGroups in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Validator.php \Symfony\Component\Validator\Validator::resolveGroups()

Parameters

null|string|string[] $groups:

Return value

string[]

3 calls to Validator::resolveGroups()
Validator::validate in vendor/symfony/validator/Validator.php
Validates a value.
Validator::validateProperty in vendor/symfony/validator/Validator.php
Validator::validatePropertyValue in vendor/symfony/validator/Validator.php

File

vendor/symfony/validator/Validator.php, line 233

Class

Validator
Default implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator

Code

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