You are here

public function AvailableEntitiesConfigurationForm::submitForm in Menu Token 8

Same name and namespace in other branches
  1. 9.1.x src/Form/AvailableEntitiesConfigurationForm.php \Drupal\menu_token\Form\AvailableEntitiesConfigurationForm::submitForm()

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/AvailableEntitiesConfigurationForm.php, line 94

Class

AvailableEntitiesConfigurationForm
Class AvailableEntitiesConfigurationForm.

Namespace

Drupal\menu_token\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);

  // Store to configuration.
  $this
    ->config('menu_token.availableentitiesconfiguration')
    ->set('available_entities', $form_state
    ->getValue('available_entities'))
    ->save();
}