function FileTransfer::__set

Same name in other branches
  1. 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__set()
  2. 11.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__set()

File

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

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public function __set(string $name, $value) : void {
    if ($name == 'connection') {
        $this->connection = $value;
    }
    elseif ($name == 'chroot') {
        $this->chroot = $value;
    }
}

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