You are here

public function DeleteForm::buildForm in Optimizely 8

Same name and namespace in other branches
  1. 8.0 src/DeleteForm.php \Drupal\optimizely\DeleteForm::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/DeleteForm.php, line 57

Class

DeleteForm
Implements the confirmation form for deleting a project.

Namespace

Drupal\optimizely

Code

public function buildForm(array $form, FormStateInterface $form_state, $oid = NULL) {

  // Implement this method so we can record the project id for submitForm().
  $this->oid = $oid;
  return parent::buildForm($form, $form_state);
}