/** * {@inheritdoc} */ public function validate($values, \sndsgd\form\Validator $validator) { if (!$this->validateCollection("array", $values, $validator)) { return []; } $ret = []; foreach (array_values($values) as $index => $value) { $result = $this->valueField->setName($index)->validate($value, $validator); if (!is_null($result)) { $ret[] = $result; } } return $ret; }