Viewable
trait Viewable
Provides standard implementation for the Viewable interface.
Methods
string
pageTitle()
Return title of this page.
setPageTitle(string $pageTitle)
Set the title of this page.
setTemplate(string $template)
Set the template used by this page.
string
theme()
Return the theme used by this page.
setTheme(string $theme)
Set (change) the theme.
array
metadata()
Return page-specific metadata overrides.
setMetadata(array $metadata)
Set page-specific overrides of the site metadata.
Details
at line 39
string
pageTitle()
Return title of this page.
at line 49
setPageTitle(string $pageTitle)
Set the title of this page.
at line 59
Template
template()
Return the template object required by this page.
at line 69
setTemplate(string $template)
Set the template used by this page.
at line 86
string
theme()
Return the theme used by this page.
at line 98
setTheme(string $theme)
Set (change) the theme.
You must ensure that the new theme directory contains the HTML template files that you need.
at line 115
array
metadata()
Return page-specific metadata overrides.
at line 125
setMetadata(array $metadata)
Set page-specific overrides of the site metadata.