You are here

public function TabDeleteForm::buildForm in Block Tabs 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/TabDeleteForm.php, line 59

Class

TabDeleteForm
Form for deleting a tab.

Namespace

Drupal\blocktabs\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, BlocktabsInterface $blocktabs = NULL, $tab = NULL) {
  $this->blockTabs = $blocktabs;
  $this->tab = $this->blockTabs
    ->getTab($tab);
  return parent::buildForm($form, $form_state);
}