You are here

public function ProtectedDirectory::isPrivate in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::isPrivate()

Is the directory private (or public).

Return value

bool TRUE if the directory is private, FALSE if it is public.

File

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

Class

ProtectedDirectory
A value object representing a protected directory.

Namespace

Drupal\Core\File

Code

public function isPrivate() {
  return $this->private;
}