public function LogFileManager::ensurePath in File Log 8
Same name in this branch
- 8 src/LogFileManager.php \Drupal\filelog\LogFileManager::ensurePath()
- 8 src/ProxyClass/LogFileManager.php \Drupal\filelog\ProxyClass\LogFileManager::ensurePath()
Same name and namespace in other branches
- 2.0.x src/LogFileManager.php \Drupal\filelog\LogFileManager::ensurePath()
Ensure that the log directory exists.
Return value
bool TRUE if the path of the logfile exists and is writeable.
Overrides LogFileManagerInterface::ensurePath
File
- src/
LogFileManager.php, line 55
Class
- LogFileManager
- Provide file-handling methods for the logfile.
Namespace
Drupal\filelogCode
public function ensurePath() : bool {
$path = $this->config
->get('location');
return $this->fileSystem
->prepareDirectory($path, FileSystemInterface::CREATE_DIRECTORY);
}