class DeleteMultiple

Same name and namespace in other branches
  1. 11.x core/modules/node/src/Form/DeleteMultiple.php \Drupal\node\Form\DeleteMultiple
  2. 10 core/modules/node/src/Form/DeleteMultiple.php \Drupal\node\Form\DeleteMultiple
  3. 8.9.x core/modules/node/src/Form/DeleteMultiple.php \Drupal\node\Form\DeleteMultiple

Provides a node deletion confirmation form.

@internal

Hierarchy

Expanded class hierarchy of DeleteMultiple

3 string references to 'DeleteMultiple'
DefaultPluginManagerTest::testCacheClearWithTags in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php
Tests the plugin manager cache clear with tags.
KeyValueEntityStorageTest::testDeleteNothing in core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
@covers ::delete[[api-linebreak]] @covers ::doDelete[[api-linebreak]]
node.routing.yml in core/modules/node/node.routing.yml
core/modules/node/node.routing.yml

File

core/modules/node/src/Form/DeleteMultiple.php, line 13

Namespace

Drupal\node\Form
View source
class DeleteMultiple extends EntityDeleteMultipleForm {
  
  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return new Url('system.admin_content');
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getDeletedMessage($count) {
    return $this->formatPlural($count, 'Deleted @count content item.', 'Deleted @count content items.');
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getInaccessibleMessage($count) {
    return $this->formatPlural($count, "@count content item has not been deleted because you do not have the necessary permissions.", "@count content 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.