public function HostMultipleBanConfirm::getDescription in http:BL 8
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides ConfirmFormBase::getDescription
File
- src/
Form/ HostMultipleBanConfirm.php, line 97  
Class
- HostMultipleBanConfirm
 - Provides a multiple host blacklisting and banning confirmation form.
 
Namespace
Drupal\httpbl\FormCode
public function getDescription() {
  $banningEnabled = TRUE ? \Drupal::state()
    ->get('httpbl.storage') == HTTPBL_DB_HH_DRUPAL : ($banningEnabled = FALSE);
  if ($banningEnabled) {
    return $this
      ->t('<p>Already banned hosts will be ignored.  Already blacklisted hosts will refresh their expiry.</p><p>These actions are un-doable by using other actions*.</p><p>*If you blacklist yourself, don\'t panic; use "drush sos --stop", fix your IP, then don\'t forget to restart ("drush sos --start").</p>');
  }
  else {
    return $this
      ->t('<p>Already blacklisted hosts will refresh their expiry.</p><p>These actions are un-doable by using other actions*.</p><p>*If you blacklist yourself, don\'t panic; use "drush sos --stop", fix your IP, then don\'t forget to restart ("drush sos --start").</p>');
  }
}