PHP Интерфейс Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface

Generators are used for generating new items of content. e.g: tags or categories for posts.
Автор: Victor Puertas ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
generateItems ( Yosymfony\Spress\Core\DataSource\ItemInterface $templateItem, array $collecions ) : Yosymfony\Spress\Core\DataSource\ItemInterface[] Generate items.

Описание методов

generateItems() публичный Метод

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
Результат Yosymfony\Spress\Core\DataSource\ItemInterface[]