You are here

public function AdvbanDelete::getQuestion in Advanced ban 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/AdvbanDelete.php, line 67

Class

AdvbanDelete
Provides a form to unban IP addresses.

Namespace

Drupal\advban\Form

Code

public function getQuestion() {
  $formatIp = $this->ipManager
    ->formatIp($this->banIp, $this->banIpEnd);
  return $this
    ->t('Are you sure you want to unblock %ip?', [
    '%ip' => $formatIp,
  ]);
}