function ProtectedDirectory::isPrivate

Same name in other branches
  1. 9 core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::isPrivate()
  2. 8.9.x core/lib/Drupal/Core/File/ProtectedDirectory.php \Drupal\Core\File\ProtectedDirectory::isPrivate()
  3. 10 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;
}

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