You are here

private function ExecutionContext::resolveGroups in Zircon Profile 8

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

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 vendor/symfony/validator/ExecutionContext.php
Validates the given value within the scope of the current validation.
ExecutionContext::validateValue in vendor/symfony/validator/ExecutionContext.php
Validates a value against a constraint.

File

vendor/symfony/validator/ExecutionContext.php, line 291

Class

ExecutionContext
Default implementation of {@link ExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

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