gradient_server-1.0.x-dev/modules/source/src/Form/SourceDeleteMultiple.php

modules/source/src/Form/SourceDeleteMultiple.php
<?php

namespace Drupal\source\Form;

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

/**
 * Provides a source deletion confirmation form.
 *
 * @internal
 */
class SourceDeleteMultiple extends EntityDeleteMultipleForm {

  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return new Url('system.admin_content');
  }

  /**
   * {@inheritdoc}
   */
  protected function getDeletedMessage($count) {
    return $this->formatPlural($count, 'Deleted @count sources.', 'Deleted @count sources.');
  }

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

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc