public function setAppendFormFieldsFunction(callable $function)
    {
        $validator = $this->getCallableValidatorAppendFormFields();
        $validator->setCallableFunction($function);

        if ($validator->isValid() === false) {
            throw $validator->getException();
        }

        $this->appendFormFieldsFunction = $function;

        return $this;
    }
public function setAppendFormFieldsFunction(callable $function)
    {
        $validator = $this->getCallableValidatorAppendFormFields();
        $validator->setCallableFunction($function);

        if ($validator->isValid() === false) {
            throw $validator->getException();
        }

        $this->appendFormFieldsFunction = $function;

        return $this;
    }
public function setAppendFormFieldsFunction ( callable $ function ) { $ validator = $ this -> getCallableValidatorAppendFormFields ( ) ; $ validator -> setCallableFunction ( $ function ) ; if ( $ validator -> isValid ( ) === false ) { throw $ validator -> getException ( ) ; } $ this -> appendFormFieldsFunction = $ function ; return $ this ; }
Sets custom "append form fields" function.

@param callable $function

@see AppendFormFieldsFunctionValidator

@return static
@throws CallableFunctionValidatorException On invalid callable arguments
Sets custom append form fields function .