You are here

public function UnitDeleteMultiple::getQuestion in Booking and Availability Management Tools for Drupal 8

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

modules/bat_unit/src/Form/UnitDeleteMultiple.php, line 64
Contains \Drupal\bat_unit\Form\UnitDeleteMultiple.

Class

UnitDeleteMultiple
Provides a unit deletion confirmation form.

Namespace

Drupal\bat_unit\Form

Code

public function getQuestion() {
  return $this
    ->formatPlural(count($this->unitInfo), 'Are you sure you want to delete this unit?', 'Are you sure you want to delete these units?');
}