/** * Check if the file can be written to and notify if not. * * @param File $file * * @return boolean */ private function isWriteable(File $file) { if ($file->getVisibility() !== 'public') { $this->flashes()->info(Trans::__("The file '%s' is not writable. You will have to use your own editor to make modifications to this file.", ['%s' => $file->getPath()])); return false; } else { return true; } }