Skip to content

Kirby 5.0.4

$page->renderVersionFromRequest()

Determines which version (if any) can be rendered based on the token authentication in the current request

$page->renderVersionFromRequest() 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.

$page->renderVersionFromRequest(): Kirby\Content\VersionId|null

Return types

Kirby\Content\VersionIdornull

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page