PHP Interface Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface

Generators are used for generating new items of content. e.g: tags or categories for posts.
Author: Victor Puertas ([email protected])
Exibir arquivo Open project: spress/spress

Public Methods

Method Description
generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collecions ) : Yosymfony\Spress\Core\DataSource\ItemInterface[] Generate items.

Method Details

generateItems() public method

Generate items.
public generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collecions ) : Yosymfony\Spress\Core\DataSource\ItemInterface[]
$templateItem Yosymfony\Spress\Core\DataSource\ItemInterface The template item where generator was declared
$collecions array An array with the collection name as a key and collection's item as value
return Yosymfony\Spress\Core\DataSource\ItemInterface[]