You are here

public function HostMultipleWhitelistConfirm::getQuestion in http:BL 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

src/Form/HostMultipleWhitelistConfirm.php, line 104

Class

HostMultipleWhitelistConfirm
Provides a multiple host white-listing (and un-banning) confirmation form.

Namespace

Drupal\httpbl\Form

Code

public function getQuestion() {
  return $this
    ->formatPlural(count($this->hostInfo), 'Are you sure you want to white-list this host?', 'Are you sure you want to white-list these hosts?');
}