function ProtectedDirectory::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::__construct()
  2. 8.9.x core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::__construct()
  3. 11.x core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::__construct()

ProtectedDirectory constructor.

Parameters

string $title: The directory title.

string $path: The path to the directory.

bool $private: (optional) Whether the directory is private or public (default).

File

core/lib/Drupal/Core/File/ProtectedDirectory.php, line 41

Class

ProtectedDirectory
A value object representing a protected directory.

Namespace

Drupal\Core\File

Code

public function __construct($title, $path, $private = FALSE) {
    $this->title = $title;
    $this->path = $path;
    $this->private = $private;
}

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