DeleteMultiple.php

Same filename and directory in other branches
  1. 9 core/modules/node/src/Form/DeleteMultiple.php
  2. 8.9.x core/modules/node/src/Form/DeleteMultiple.php
  3. 10 core/modules/node/src/Form/DeleteMultiple.php

Namespace

Drupal\node\Form

File

core/modules/node/src/Form/DeleteMultiple.php

View source
<?php

namespace Drupal\node\Form;

use Drupal\Core\Entity\Form\DeleteMultipleForm as EntityDeleteMultipleForm;
use Drupal\Core\Url;

/**
 * Provides a node deletion confirmation form.
 *
 * @internal
 */
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.");
    }

}

Classes

Title Deprecated Summary
DeleteMultiple Provides a node deletion confirmation form.

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