Cecil

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

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

Methods

generate()

Creates pages and adds it to collection.

public generate() : void
 
On this page

Search results