You are here

public function SiteVerifyDeleteForm::buildForm in Site verification 8

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/Form/SiteVerifyDeleteForm.php, line 57

Class

SiteVerifyDeleteForm
Builds the form to delete a forum term.

Namespace

Drupal\site_verify\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $site_verify = NULL) {
  $this->siteVerify = $site_verify;
  $record = \Drupal::service('site_verify_service')
    ->siteVerifyLoad($this->siteVerify);
  $form = parent::buildForm($form, $form_state);
  $form['record'] = [
    '#type' => 'value',
    '#value' => $record,
  ];
  return $form;
}