Same name and namespace in other branches
  1. 2.x src/Form/EntityCloneSettingsForm.php \Drupal\entity_clone\Form\EntityCloneSettingsForm::submitForm()

File

src/Form/EntityCloneSettingsForm.php, line 134

Class

EntityCloneSettingsForm
Provide the settings form for entity clone.

Namespace

Drupal\entity_clone\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->entityCloneSettingsManager
        ->setFormSettings($form_state->getValue('form_settings'));
    $this->entityCloneSettingsManager
        ->setTakeOwnershipSettings($form_state->getValue('take_ownership'));
    $this->entityCloneSettingsManager
        ->setExcludeClonedSetting($form_state->getValue('no_suffix'));
    parent::submitForm($form, $form_state);
}