class HandleGenerator (View source)

Properties

protected Text $text
protected Strings $strings
protected Repository $config

Methods

__construct(Text $text, Strings $strings, Repository $config)

HandleGenerator constructor.

string
generate(Page $page, array $data)

Generate collection handle from requested data.

Details

__construct(Text $text, Strings $strings, Repository $config)

HandleGenerator constructor.

Parameters

Text $text
Strings $strings
Repository $config

string generate(Page $page, array $data)

Generate collection handle from requested data.

Parameters

Page $page

Generate handle for this page.

array $data

Requested data. It may contain cName, cHandle

Return Value

string