public function UnitDeleteMultiple::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 ConfirmFormBase::buildForm
File
- modules/
bat_unit/ src/ Form/ UnitDeleteMultiple.php, line 85 - Contains \Drupal\bat_unit\Form\UnitDeleteMultiple.
Class
- UnitDeleteMultiple
- Provides a unit deletion confirmation form.
Namespace
Drupal\bat_unit\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$this->unitInfo = $this->tempStoreFactory
->get('unit_multiple_delete_confirm')
->get($this
->currentUser()
->id());
$form = parent::buildForm($form, $form_state);
return $form;
}