PageDataFactory
in package
implements
Arrayable
AbstractYes
Streamlines the data dynamic construction specific to a HydePHP page.
Simply pass along the data the class needs to run, then access the parsed data using the toArray() method.
Commonly, all data can be set using front matter in the page source file.
However, as all front matter is optional in Hyde, if no front matter is set for the given key, the factory may attempt to generate and discover the values based on the page's contents, as well as the project's overall configuration.
In other words, this is where the magic happens.
Table of Contents
Interfaces
- Arrayable
Constants
- SCHEMA = []
- The front matter properties supported by this factory.
Methods
- toArray() : array<string, mixed>
- Get the generated data as an associative array.
Constants
SCHEMA
The front matter properties supported by this factory.
public
array<string, string|array<string|int, mixed>>
SCHEMA
= []
Methods
toArray()
Get the generated data as an associative array.
public
abstract toArray() : array<string, mixed>