VariablePageList
extends Component
in package
Table of Contents
Properties
- $by : string
- The lookup method ('id' or 'slug').
- $pages : Collection
- The variable pages.
- $type : string|int
- The type identifier (ID or slug).
- $variablePageType : VariablePageType|null
- The variable page type instance.
Methods
- __construct() : void
- Create a new component instance.
- render() : View
- Get the view / contents that represent the component.
- resolveType() : VariablePageType|null
- Resolve the VariablePageType by ID or slug.
Properties
$by
The lookup method ('id' or 'slug').
public
string
$by
$pages
The variable pages.
public
Collection
$pages
$type
The type identifier (ID or slug).
public
string|int
$type
$variablePageType
The variable page type instance.
public
VariablePageType|null
$variablePageType
Methods
__construct()
Create a new component instance.
public
__construct(string|int $type[, string $by = 'id' ]) : void
Parameters
- $type : string|int
- $by : string = 'id'
render()
Get the view / contents that represent the component.
public
render() : View
Return values
ViewresolveType()
Resolve the VariablePageType by ID or slug.
protected
resolveType(string|int $type, string $by) : VariablePageType|null
Parameters
- $type : string|int
- $by : string