You are here

protected function ConfirmDeleteMultiple::getInaccessibleMessage in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Form/ConfirmDeleteMultiple.php \Drupal\comment\Form\ConfirmDeleteMultiple::getInaccessibleMessage()
  2. 10 core/modules/comment/src/Form/ConfirmDeleteMultiple.php \Drupal\comment\Form\ConfirmDeleteMultiple::getInaccessibleMessage()

Returns the message to show the user when an item has not been deleted.

Parameters

int $count: Count of deleted translations.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The item inaccessible message.

Overrides DeleteMultipleForm::getInaccessibleMessage

File

core/modules/comment/src/Form/ConfirmDeleteMultiple.php, line 39

Class

ConfirmDeleteMultiple
Provides the comment multiple delete confirmation form.

Namespace

Drupal\comment\Form

Code

protected function getInaccessibleMessage($count) {
  return $this
    ->formatPlural($count, "@count comment has not been deleted because you do not have the necessary permissions.", "@count comments have not been deleted because you do not have the necessary permissions.");
}