You are here

public function LogFileManager::setFilePermissions in File Log 2.0.x

Same name in this branch
  1. 2.0.x src/LogFileManager.php \Drupal\filelog\LogFileManager::setFilePermissions()
  2. 2.0.x src/ProxyClass/LogFileManager.php \Drupal\filelog\ProxyClass\LogFileManager::setFilePermissions()

Set correct permissions on the log file.

Return value

bool TRUE for success, FALSE in the event of an error.

Overrides LogFileManagerInterface::setFilePermissions

See also

\Drupal\Core\File\FileSystemInterface::chmod()

File

src/LogFileManager.php, line 64

Class

LogFileManager
Provide file-handling methods for the logfile.

Namespace

Drupal\filelog

Code

public function setFilePermissions() : bool {
  return $this->fileSystem
    ->chmod($this
    ->getFileName());
}