public function CustomBreadcrumbsSettingsForm::submitForm in Custom Breadcrumbs 1.x
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/ CustomBreadcrumbsSettingsForm.php, line 86
Class
- CustomBreadcrumbsSettingsForm
- Configure Custom breadcrumb settings for this site.
Namespace
Drupal\custom_breadcrumbs\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('custom_breadcrumbs.settings')
->set('home', $form_state
->getValue('home'))
->set('home_link', $form_state
->getValue('home_link'))
->set('current_page', $form_state
->getValue('current_page'))
->set('current_page_link', $form_state
->getValue('current_page_link'))
->set('trim_title', $form_state
->getValue('trim_title'))
->set('admin_pages_disable', $form_state
->getValue('admin_pages_disable'))
->save();
parent::submitForm($form, $form_state);
}