PHP Class Sulu\Bundle\ContentBundle\Teaser\TeaserManager

Inheritance: implements Sulu\Bundle\ContentBundle\Teaser\TeaserManagerInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\ContentBundle\Teaser\Provider\TeaserProviderPoolInterface $providerPool )
find ( array $items, $locale )

Private Methods

Method Description
sortItems ( array $items ) : array Returns items sorted by type.
sortTeasers ( array $teasers, array $result, array $positions, array $items ) : array Returns sorted teaser by given position array.

Method Details

__construct() public method

public __construct ( Sulu\Bundle\ContentBundle\Teaser\Provider\TeaserProviderPoolInterface $providerPool )
$providerPool Sulu\Bundle\ContentBundle\Teaser\Provider\TeaserProviderPoolInterface

find() public method

public find ( array $items, $locale )
$items array