You are here

public function FancyFileDeleteBatch::__construct in Fancy File Delete 2.0.x

Constructs a new FancyFileDeleteBatch.

Parameters

\Drupal\Core\Database\Connection $database: The current database connection.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

\Drupal\Core\Messenger\MessengerInterface $messenger: Messenger service.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

File

src/FancyFileDeleteBatch.php, line 75

Class

FancyFileDeleteBatch
Class FancyFileDeleteBatch.

Namespace

Drupal\fancy_file_delete

Code

public function __construct(Connection $database, EntityTypeManagerInterface $entityTypeManager, MessengerInterface $messenger, TranslationInterface $string_translation, FileSystemInterface $file_system) {
  $this->database = $database;
  $this->entityTypeManager = $entityTypeManager;
  $this->messenger = $messenger;
  $this->stringTranslation = $string_translation;
  $this->fileSystem = $file_system;
}