2 * Implements hook_form_system_theme_settings_alter().
4 function {{ machine_name }}_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
5 // Add a checkbox to toggle the breadcrumb trail.
6 $form['toggle_breadcrumb'] = [
8 '#title' => t('Display the breadcrumb'),
9 '#default_value' => theme_get_setting('features.breadcrumb'),
10 '#description' => t('Show a trail of links from the homepage to the current page.'),