Cecil

Redirect extends AbstractGenerator implements GeneratorInterface

Redirect generator class.

This class is responsible for generating redirect pages based on the 'redirect' variable set in the pages. It filters the pages to find those that have a 'redirect' variable defined and creates a new page with the 'layout' set to 'redirect'. The generated pages are then added to the collection of generated pages.

Table of Contents

Interfaces

GeneratorInterface
Generator interface.

Properties

$builder  : Builder
$config  : Config
$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