/**
  * {@inheritdoc}
  */
 public function buildForm(array $form, FormStateInterface $form_state)
 {
     module_load_include('inc', 'name', 'name.admin');
     $config = $this->configFactory->get('name.settings');
     $form['name_settings'] = array('#tree' => TRUE);
     $form['name_settings']['default_format'] = array('#type' => 'textfield', '#title' => t('Default format'), '#default_value' => $config->get('default_format'), '#description' => t('See help on drupal.org for more info.'), '#required' => TRUE);
     $form['name_settings']['sep1'] = array('#type' => 'textfield', '#title' => t('Separator 1 replacement token'), '#default_value' => $config->get('sep1'));
     $form['name_settings']['sep2'] = array('#type' => 'textfield', '#title' => t('Separator 2 replacement token'), '#default_value' => $config->get('sep2'));
     $form['name_settings']['sep3'] = array('#type' => 'textfield', '#title' => t('Separator 3 replacement token'), '#default_value' => $config->get('sep3'));
     // As the fieldset does not have the #input flag, this is not saved.
     $form['name_format_help'] = _name_get_name_format_help_form();
     return parent::buildForm($form, $form_state);
 }
 /**
  * Help box.
  *
  * @return array
  */
 public function nameFormatHelp()
 {
     module_load_include('inc', 'name', 'name.admin');
     return _name_get_name_format_help_form();
 }