$modelWithContent->version()
Returns a content version instance
$modelWithContent->version(Kirby\Content\VersionId|string|null $versionId = null): Kirby\Content\Version
Parameters
Name | Type | Default |
---|---|---|
$versionId | Kirby\Content\VersionId orstring ornull |
null
|
Return type
This method modifies the existing $modelwithcontent
object it is applied to and returns it again.