objects

PageSource

A page whose children come from somewhere other than pages/ - an API, a database, a file.

Its bound view class implements this, and `child()`, `App::resolve()` and the admin then build each child from record(). A sourced page is never in the registry; once an editor saves one it gets a folder that holds only its view's fields, and anything else in the record keeps coming from the source.
$pageSource Phlat\PageSource 1 methods
Show
  • record The record for child $name - its `uuid`, `view` and content - or null when the source has none.

Methods

$pageSource->record(string $name): ?array

The record for child $name - its `uuid`, `view` and content - or null when the source has none.

Parameters (1)
$name string

Returns ?array

phlat/src/PageSource.php:18