You are here

public function AbjsConditionDeleteConfirmForm::buildForm in A/B Test JS 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/AbjsConditionDeleteConfirmForm.php \Drupal\abjs\Form\AbjsConditionDeleteConfirmForm::buildForm()

Build form.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: Provides an object containing the current state of a form.

int $cid: The ID of the item to be deleted.

Overrides ConfirmFormBase::buildForm

File

src/Form/AbjsConditionDeleteConfirmForm.php, line 97

Class

AbjsConditionDeleteConfirmForm
Class for confirm delete condition.

Namespace

Drupal\abjs\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $cid = NULL) {
  $this->id = $cid;
  return parent::buildForm($form, $form_state);
}