const mixinafPillow::PageMeta

afPillow::PageMeta

(Service) - Returns details about the Pillow page currently being rendered.

PageMeta objects may also be created by the Pages service.

contentType

Source

abstract MimeType contentType()

Returns the Content-Type produced by this page.

Returns PillowConfigIds#defaultContextType if it can not be determined.

eventUri

Source

abstract Uri eventUri(Str eventName, Obj?[]? eventContext)

Returns a URI for a given event - use to create client side URIs to call the event.

httpMethod

Source

abstract Str httpMethod()

isWelcomePage

Source

abstract Bool isWelcomePage()

Returns true if the page is a welcome page.

pageContext

Source

abstract Obj?[] pageContext()

Returns the context used to initialise this page.

pageType

Source

abstract Type pageType()

Returns the page that this Meta object wraps.

pageUri

Source

abstract Uri pageUri()

Returns a URI that can be used to render the given page. The URI takes into account:

  • Any welcome URI -> home page conversions
  • The context used to render this page
  • Any parent WebMods
toStr

Source

virtual override Str toStr()

Returns pageUri.

withContext

Source

abstract PageMeta withContext(Obj?[]? pageContext)

Returns a new PageMeta with the given page context.