/**
  * {@inheritdoc}
  */
 public function buildForm(array $form, FormStateInterface $form_state)
 {
     $config = $this->config('backup_db.settings');
     $options = _backup_db_format_options(backup_db_show_tables());
     $form['cron_backup_enabled'] = array('#title' => t('Enable local database backups on cron runs.'), '#type' => 'checkbox', '#default_value' => $config->get('cron_backup_enabled'));
     // @todo, provide reset or none option.
     $form['cron_interval'] = array('#title' => t('Backup Interval (hours)'), '#type' => 'number', '#step' => '1', '#description' => 'Number of hours to wait between backups.', '#required' => TRUE, '#default_value' => $config->get('cron_interval'));
     return parent::buildForm($form, $form_state);
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(array $form, FormStateInterface $form_state)
 {
     $config = $this->config('backup_db.settings');
     $options = _backup_db_format_options(backup_db_show_tables());
     // @todo, provide reset or none option.
     $form['include_tables'] = array('#type' => 'select', '#title' => $this->t('Include tables'), '#options' => $options, '#multiple' => TRUE, '#description' => $this->t('Assign tables to include, leave empty for all.'), '#default_value' => $config->get('include_tables'));
     $form['exclude_tables'] = array('#type' => 'select', '#title' => $this->t('Exclude tables'), '#options' => $options, '#multiple' => TRUE, '#description' => $this->t('Assign tables to exclude, leave empty for none.'), '#default_value' => $config->get('exclude_tables'));
     return parent::buildForm($form, $form_state);
 }