$file->version()
Returns a content version instance
$file->version(Kirby\Content\VersionId|string|null $versionId = null): Kirby\Content\VersionParameters
| Name | Type | Default | 
|---|---|---|
| $versionId | Kirby\Content\VersionIdorstringornull | null | 
Return type
This method modifies the existing $file object it is applied to and returns it again.
Parent class
	Kirby\Cms\File
		inherited from Kirby\Cms\ModelWithContent	
Examples
// get the latest saved content of a file
$file->version('latest');
// get all unsaved changes
$file->version('changes');