API Documentation

PageCollection extends BaseFoundationCollection
in package

FinalYes

The PageCollection contains all the instantiated pages.

Tags
template

T of \Hyde\Pages\Concerns\HydePage

template-extends

\Hyde\Foundation\Concerns\BaseFoundationCollection<string, T>

see
PageCollection
see
Hyde::pages()

Table of Contents

Properties

$items  : array<string, HydePage>
$kernel  : HydeKernel

Methods

addPage()  : void
boot()  : static
get()  : HydePage|null
getPage()  : HydePage
getPages()  : PageCollection<string, HydePage>
init()  : static
__construct()  : mixed
parsePage()  : mixed
runDiscovery()  : void
runExtensionHandlers()  : void
setKernel()  : $this

Properties

Methods

get()

public get(string $key, HydePage $default = null) : HydePage|null

This class is stored as a singleton in the HydeKernel. You would commonly access it via the facade or Hyde helper:

Parameters
$key : string
$default = null : HydePage
Return values
HydePage|null

__construct()

protected final __construct([array<string|int, mixed>|Arrayable|null $items = [] ]) : mixed
Parameters
$items : array<string|int, mixed>|Arrayable|null = []

parsePage()

protected static parsePage(HydePage> $pageClass, string $path) : mixed
Parameters
$pageClass : HydePage>
$path : string

        
On this page

Search results