You are here

public function FrontPageHomeLinksForm::submitForm in Front Page 8

Same name and namespace in other branches
  1. 9.1.x src/Form/FrontPageHomeLinksForm.php \Drupal\front_page\Form\FrontPageHomeLinksForm::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/FrontPageHomeLinksForm.php, line 50

Class

FrontPageHomeLinksForm
Configure site information settings for this site.

Namespace

Drupal\front_page\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->configFactory()
    ->getEditable('front_page.settings')
    ->set('home_link_path', $form_state
    ->getValue('front_page_home_link_path'))
    ->save();
  parent::submitForm($form, $form_state);
}