Pagination extends AbstractGenerator implements GeneratorInterface
Pagination generator. This generator creates paginated pages for sections, terms, and the homepage. It filters the pages based on their type, checks for pagination settings, and generates paginated pages accordingly.
Table of Contents
Interfaces
- GeneratorInterface
- Generator interface.
Properties
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
$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