function DeleteMultipleForm::getInaccessibleMessage

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getInaccessibleMessage()
  2. 10 core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php \Drupal\Core\Entity\Form\DeleteMultipleForm::getInaccessibleMessage()
  3. 11.x 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.");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.