You are here

private function ExecutionContext::resolveGroups in Plug 7

Returns an array of group names.

Parameters

null|string|string[] $groups The groups to resolve. If a single string is: passed, it is converted to an array. If null is passed, an array containing the current group of the context is returned.

Return value

array An array of validation groups.

2 calls to ExecutionContext::resolveGroups()
ExecutionContext::validate in lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php
Validates the given value within the scope of the current validation.
ExecutionContext::validateValue in lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php
Validates a value against a constraint.

File

lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php, line 289

Class

ExecutionContext
Default implementation of {@link ExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

private function resolveGroups($groups) {
  return $groups ? (array) $groups : (array) $this->group;
}