protected function appendFormField(FilterHasFormInterface $filter, FormBuilderInterface $filterFormBuilder)
    {
        if (!($filter instanceof CustomAppendFormFieldsInterface)) {
            $filter->appendFormFieldsToForm($filterFormBuilder);

            return $filter;
        }

        $callableFunction = $filter->getAppendFormFieldsFunction();

        if (!is_callable($callableFunction)) {
            /** @var FilterHasFormInterface $filter */
            $filter->appendFormFieldsToForm($filterFormBuilder);

            return $filter;
        }

        call_user_func($callableFunction, $filter, $filterFormBuilder);

        return $filter;
    }
protected function appendFormField(FilterHasFormInterface $filter, FormBuilderInterface $filterFormBuilder)
    {
        if (!($filter instanceof CustomAppendFormFieldsInterface)) {
            $filter->appendFormFieldsToForm($filterFormBuilder);

            return $filter;
        }

        $callableFunction = $filter->getAppendFormFieldsFunction();

        if (!is_callable($callableFunction)) {
            /** @var FilterHasFormInterface $filter */
            $filter->appendFormFieldsToForm($filterFormBuilder);

            return $filter;
        }

        call_user_func($callableFunction, $filter, $filterFormBuilder);

        return $filter;
    }
protected function appendFormField ( FilterHasFormInterface $ filter , FormBuilderInterface $ filterFormBuilder ) { if ( ! ( $ filter instanceof CustomAppendFormFieldsInterface ) ) { $ filter -> appendFormFieldsToForm ( $ filterFormBuilder ) ; return $ filter ; } $ callableFunction = $ filter -> getAppendFormFieldsFunction ( ) ; if ( ! is_callable ( $ callableFunction ) ) { /** @var FilterHasFormInterface $filter */ $ filter -> appendFormFieldsToForm ( $ filterFormBuilder ) ; return $ filter ; } call_user_func ( $ callableFunction , $ filter , $ filterFormBuilder ) ; return $ filter ; }
The main "actor" here.
Appends a filter to the representation form.
If the filter has defined a custom function for form appending, than it will be used.

@param FilterHasFormInterface $filter            The filter
@param FormBuilderInterface   $filterFormBuilder A form builder for a specific filter

@return FilterHasFormInterface|CustomAppendFormFieldsInterface
The main actor here . Appends a filter to the representation form . If the filter has defined a custom function for form appending than it will be used .