src/View/EditMask.php
private function handleSubmit($buttons)
    {
        $inputProvider = $this->environment->getInputProvider();
        foreach (array_keys($buttons) as $button) {
            if ($inputProvider->hasValue($button)) {
                $event = new HandleSubmitEvent($this->environment, $this->model, $button);

                $this->dispatcher->dispatch(DcGeneralFrontendEvents::HANDLE_SUBMIT, $event);

                break;
            }
        }
    }
private function handleSubmit($buttons)
    {
        $inputProvider = $this->environment->getInputProvider();
        foreach (array_keys($buttons) as $button) {
            if ($inputProvider->hasValue($button)) {
                $event = new HandleSubmitEvent($this->environment, $this->model, $button);

                $this->dispatcher->dispatch(DcGeneralFrontendEvents::HANDLE_SUBMIT, $event);

                break;
            }
        }
    }
Handle the submit and determine which button has been triggered.

This method will redirect the client.

@param array $buttons The registered edit buttons.

@return void