public function submitForm(array &$form, FormStateInterface $form_state)
    {
        $node   = $form_state->getTemporaryValue('node');
        $action = $form_state->getValue('action');
        $siteId = $form_state->getValue('site');

        $options = [];
        if (isset($_GET['destination'])) {
            $options['query']['destination'] = $_GET['destination'];
            unset($_GET['destination']);
        }

        switch ($action) {

            case 'duplicate':
                list($path, $options) = $this->siteManager->getUrlGenerator()->getRouteAndParams($siteId, 'node/' . $node->id(). '/clone', $options);
                drupal_set_message($this->t("You can now edit this node on this site, it will be automatically duplicated."));
                break;

            default:
                $path = 'node/' . $node->id() . '/edit';
                drupal_set_message($this->t("You are now editing the global content for all sites."));
                break;
        }

        $form_state->setRedirect($path, $options);
    }