You are here

public function EntityCloneSettingsForm::submitForm in Entity Clone 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ConfigFormBase::submitForm

File

src/Form/EntityCloneSettingsForm.php, line 127

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'));
  parent::submitForm($form, $form_state);
}