You are here

public function SalesforceMappingDisableForm::submit in Salesforce Suite 8.3

File

modules/salesforce_mapping/src/Form/SalesforceMappingDisableForm.php, line 44

Class

SalesforceMappingDisableForm
Salesforce Mapping Disable Form .

Namespace

Drupal\salesforce_mapping\Form

Code

public function submit(array $form, FormStateInterface $form_state) {
  parent::submit($form, $form_state);
  $this->entity
    ->disable()
    ->save();
  $form_state['redirect_route'] = [
    'route_name' => 'entity.salesforce_mapping.list',
  ];
}