interface Viewable

Interface that ensures compliance with \Tfish\View\Single.

Methods

string
pageTitle()

Return the page title.

setPageTitle(string $pageTitle)

Set the page title.

template()

Return the template name for this page view.

setTemplate(string $template)

Set the template for this page view.

string
theme()

Return the active theme for this page view.

setTheme(string $theme)

Set the theme for this page view.

array
metadata()

Return metadata overrides for this page view.

setMetadata(array $metadata)

Set metadata overrides for this page view.

Details

at line 36
string pageTitle()

Return the page title.

Return Value

string

at line 43
setPageTitle(string $pageTitle)

Set the page title.

Parameters

string $pageTitle Title of the page.

at line 50
Template template()

Return the template name for this page view.

Return Value

Template

at line 57
setTemplate(string $template)

Set the template for this page view.

Parameters

string $template Name of HTML template, without the file extension, eg. 'article'.

at line 64
string theme()

Return the active theme for this page view.

Return Value

string

at line 71
setTheme(string $theme)

Set the theme for this page view.

Parameters

string $theme Name of the theme directory.

at line 78
array metadata()

Return metadata overrides for this page view.

Return Value

array

at line 85
setMetadata(array $metadata)

Set metadata overrides for this page view.

Parameters

array $metadata Overriden metadata properties.