You are here

public function ProtectedDirectory::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}