You are here

protected function DeleteMultipleForm::getInaccessibleMessage in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getInaccessibleMessage()
  2. 9 core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::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.

1 call to DeleteMultipleForm::getInaccessibleMessage()
DeleteMultipleForm::submitForm in core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php
Form submission handler.
2 methods override DeleteMultipleForm::getInaccessibleMessage()
ConfirmDeleteMultiple::getInaccessibleMessage in core/modules/comment/src/Form/ConfirmDeleteMultiple.php
Returns the message to show the user when an item has not been deleted.
DeleteMultiple::getInaccessibleMessage in core/modules/node/src/Form/DeleteMultiple.php
Returns the message to show the user when an item has not been deleted.

File

core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php, line 319

Class

DeleteMultipleForm
Provides an entities deletion confirmation form.

Namespace

Drupal\Core\Entity\Form

Code

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