You are here

SalesforceMappingAddForm.php in Salesforce Suite 5.0.x

File

modules/salesforce_mapping_ui/src/Form/SalesforceMappingAddForm.php
View source
<?php

namespace Drupal\salesforce_mapping_ui\Form;

use Drupal\Core\Form\FormStateInterface;

/**
 * Salesforce Mapping Add/Edit Form.
 */
class SalesforceMappingAddForm extends SalesforceMappingFormCrudBase {

  /**
   * {@inheritdoc}
   */
  public function save(array $form, FormStateInterface $form_state) {
    parent::save($form, $form_state);
    $form_state
      ->setRedirect('entity.salesforce_mapping.fields', [
      'salesforce_mapping' => $this->entity
        ->id(),
    ]);
  }

}

Classes

Namesort descending Description
SalesforceMappingAddForm Salesforce Mapping Add/Edit Form.