oSearch = $oSearch; } public function Validate($value): array { if (utils::IsNullOrEmptyString($value)) { return []; } if (($value === 0) || ($value === '0')) { return []; } $oSetForExistingCurrentValue = FieldHelper::GetObjectsSetFromSearchAndCurrentValueId($this->oSearch, $value); $iObjectsCount = $oSetForExistingCurrentValue->CountWithLimit(1); if ($iObjectsCount === 0) { return ["Value $value does not match the corresponding filter set"]; } return []; } }