SalesforceMappingAddForm.php in Salesforce Suite 8.4
File
modules/salesforce_mapping_ui/src/Form/SalesforceMappingAddForm.php
View source
<?php
namespace Drupal\salesforce_mapping_ui\Form;
use Drupal\Core\Form\FormStateInterface;
class SalesforceMappingAddForm extends SalesforceMappingFormCrudBase {
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(),
]);
}
}