public function BreadcrumbManagerConfigForm::submitForm in Breadcrumb Manager 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/ BreadcrumbManagerConfigForm.php, line 198
Class
- BreadcrumbManagerConfigForm
- Class BreadcrumbManagerConfigForm.
Namespace
Drupal\breadcrumb_manager\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('breadcrumb_manager.config')
->set('excluded_paths', trim($form_state
->getValue('excluded_paths')))
->set('show_front', $form_state
->getValue('show_front'))
->set('show_home', $form_state
->getValue('show_home'))
->set('home', $form_state
->getValue('home'))
->set('show_current', $form_state
->getValue('show_current'))
->set('show_current_as_link', $form_state
->getValue('show_current_as_link'))
->set('show_fake_segments', $form_state
->getValue('show_fake_segments'))
->set('title_resolvers', $form_state
->getValue('title_resolvers'))
->save();
}