Listable
trait Listable
Provides standard implementation for common parts of the Listable interface (excepting pagination and setMetadata()).
Methods
Sets the primary column to order query results by.
Sets the sort type (ascending or descending) for the primary order column of a result set.
Sets the secondary column to order query results by.
Sets the sort type (ascending or descending) for the secondary order column of a result set.
Return title of this page.
Set the title of this page.
Set the template used by this page.
Return the theme used by this page.
Set (change) the theme.
Return page-specific metadata overrides.
Set page-specific overrides of the site metadata.
Details
at line 46
setOrder(string $field)
Sets the primary column to order query results by.
at line 56
setOrderType(string $orderType)
Sets the sort type (ascending or descending) for the primary order column of a result set.
at line 66
setSecondaryOrder(string $field)
Sets the secondary column to order query results by.
at line 76
setSecondaryOrderType(string $orderType)
Sets the sort type (ascending or descending) for the secondary order column of a result set.
at line 88
string
pageTitle()
Return title of this page.
at line 98
setPageTitle(string $pageTitle)
Set the title of this page.
at line 108
Template
template()
Return the template object required by this page.
at line 118
setTemplate(string $template)
Set the template used by this page.
at line 135
string
theme()
Return the theme used by this page.
at line 147
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 164
array
metadata()
Return page-specific metadata overrides.
at line 174
setMetadata(array $metadata)
Set page-specific overrides of the site metadata.