$version->sibling()
Returns a sibling version for the same model
$version->sibling()
has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$version->sibling(Kirby\Content\VersionId|string $id): Kirby\Content\Version
Parameters
Name | Type | Default |
---|---|---|
$idrequired | Kirby\Content\VersionId orstring |
no default value |
Return type
This method modifies the existing $version
object it is applied to and returns it again.