You are here

public function FileTransfer::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__construct()
  2. 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__construct()

Constructs a Drupal\Core\FileTransfer\FileTransfer object.

Parameters

$jail: The full path where all file operations performed by this object will be restricted to. This prevents the FileTransfer classes from being able to touch other parts of the filesystem.

2 methods override FileTransfer::__construct()
Local::__construct in core/lib/Drupal/Core/FileTransfer/Local.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
TestFileTransfer::__construct in core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.

File

core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 52

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public function __construct($jail) {
  $this->jail = $jail;
}