lib/Parameters/Form/Type/ParametersType.php
private function includeParameter(ParameterDefinition $parameterDefinition, array $groups): bool
    {
        $parameterGroups = $parameterDefinition->getGroups();

        if (count($parameterGroups) === 0 || count($groups) === 0) {
            return true;
        }

        return count(array_intersect($parameterGroups, $groups)) > 0;
    }
private function includeParameter(ParameterDefinition $parameterDefinition, array $groups): bool
    {
        $parameterGroups = $parameterDefinition->getGroups();

        if (count($parameterGroups) === 0 || count($groups) === 0) {
            return true;
        }

        return count(array_intersect($parameterGroups, $groups)) > 0;
    }
private function includeParameter ( ParameterDefinition $ parameterDefinition , array $ groups ) : bool { $ parameterGroups = $ parameterDefinition -> getGroups ( ) ; if ( count ( $ parameterGroups ) === 0 || count ( $ groups ) === 0 ) { return true ; } return count ( array_intersect ( $ parameterGroups , $ groups ) ) > 0 ; }
Returns if the parameter will be included in the form based on provided groups.
Returns if the parameter will be included in the form based on provided groups .