public function SimpleNodeImporterConfigForm::submitForm in Simple Node Importer 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/ SimpleNodeImporterConfigForm.php, line 169
Class
- SimpleNodeImporterConfigForm
- Configuration Form for the Simple Node Importer.
Namespace
Drupal\simple_node_importer\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('simple_node_importer.settings');
$config
->set('entity_type_select', $form_state
->getValue('entity_type_select'))
->set('content_type_select', $form_state
->getValue('content_type_select'))
->set('simple_node_importer_allow_user_autocreate', $form_state
->getValue('simple_node_importer_allow_user_autocreate'))
->set('simple_node_importer_allow_add_term', $form_state
->getValue('simple_node_importer_allow_add_term'))
->set('node_delete', $form_state
->getValue('node_delete'))
->save();
if (method_exists($this, 'submitFormDeleteLogs')) {
$this
->submitFormDeleteLogs($form, $form_state);
}
parent::submitForm($form, $form_state);
}