You are here

public function AbjsExperienceForm::deleteExperience in A/B Test JS 8

Same name and namespace in other branches
  1. 2.0.x src/Form/AbjsExperienceForm.php \Drupal\abjs\Form\AbjsExperienceForm::deleteExperience()

Delete item.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: The state of forms.

File

src/Form/AbjsExperienceForm.php, line 205

Class

AbjsExperienceForm
Class for build experience form.

Namespace

Drupal\abjs\Form

Code

public function deleteExperience(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('abjs.experience_delete_confirm_form', [
    'eid' => $form_state
      ->getValue('eid'),
  ]);
}