SilverStripe\Versioned\VersionedStateExtension
Persists versioned state between requests via querystring arguments
Synopsis
class VersionedStateExtension
extends Extension
{
- // methods
- public void updateLink()
- protected bool hasVersionedQuery()
- protected string getReadingmode()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
protected
- getReadingmode() — Get reading mode for the record / controller being decorated
- hasVersionedQuery() — Check if link contains versioned queryargs
public
- updateLink() — Auto-append current stage if we're in draft, to avoid relying on session state for this, and the related potential of showing draft content without varying the URL itself.