Documentation

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

$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
View

resolveType()

Resolve the VariablePageType by ID or slug.

protected resolveType(string|int $type, string $by) : VariablePageType|null
Parameters
$type : string|int
$by : string
Return values
VariablePageType|null

        
On this page

Search results