Skip to content
Snippets Groups Projects

Add sync option to execute form

2 unresolved threads

Closes #3443572

Merge request reports

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
143 143 '#description' => $this->t('Check this box to update all previously-imported content in addition to importing new content. Leave unchecked to only import new content'),
144 144 ];
145 145
146 $form['options']['sync'] = [
147 '#type' => 'checkbox',
148 '#title' => $this->t('Sync'),
149 '#description' => $this->t('Check this box to sync source and destination. Delete destination records that do not exist in the source.'),
  • 252 258 $options = [
    253 259 'limit' => $form_state->getValue('limit') ?: 0,
    254 260 'update' => $form_state->getValue('update') ?: 0,
    261 'sync' => (bool)$form_state->getValue('update'),
  • There is an obvious error, apart from which things seem okay. Nice!

  • Jerry Radwick added 1 commit

    added 1 commit

    Compare with previous version

  • Jerry Radwick added 5 commits

    added 5 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading