DefaultPages extends VirtualPages
DefaultPages generator class. This class extends the VirtualPages generator to create default pages based on the configuration key 'pages.default'. It is used to generate pages that are not explicitly defined in the content. The pages are generated based on the configuration settings and can include common pages like '404', '500', 'about', etc.
Table of Contents
Properties
- $builder : Builder
- $config : Config
- $configKey : mixed
- $generatedPages : Collection
- $config : Config
Methods
- __construct() : mixed
- Gives the Builder to the object.
- generate() : void
- Creates pages and adds it to collection.
- runGenerate() : Collection
- Run the `generate` method of the generator and returns pages.
Properties
$builder
protected
Builder
$builder
$config
protected
Config
$config
$configKey
protected
mixed
$configKey
= 'pages.default'
$generatedPages
protected
Collection
$generatedPages
Methods
__construct()
Gives the Builder to the object.
public
__construct(Builder $builder) : mixed
Parameters
- $builder : Builder
generate()
Creates pages and adds it to collection.
public
generate() : void
runGenerate()
Run the `generate` method of the generator and returns pages.
public
runGenerate() : Collection