You are here

public function UnitBundleDeleteConfirm::buildForm in Booking and Availability Management Tools for Drupal 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 EntityDeleteForm::buildForm

File

modules/bat_unit/src/Form/UnitBundleDeleteConfirm.php, line 21
Contains \Drupal\bat_unit\Form\UnitBundleDeleteConfirm.

Class

UnitBundleDeleteConfirm
Provides a form for unit bundle deletion.

Namespace

Drupal\bat_unit\Form

Code

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