Cecil

Alias extends AbstractGenerator implements GeneratorInterface

Alias generator.

This generator creates alias pages for existing pages based on the 'alias' or 'aliases' variable. Each alias will redirect to the original page.

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.
getPageAliases()  : array<string|int, mixed>
Returns aliases array.

Properties

Methods

generate()

Creates pages and adds it to collection.

public generate() : void

getPageAliases()

Returns aliases array.

protected getPageAliases(Page $page) : array<string|int, mixed>
Parameters
$page : Page
Return values
array<string|int, mixed>
 
On this page

Search results