Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface::getTree PHP Method

getTree() public method

Returns collections from root with given depth.
public getTree ( string $locale, integer $offset, integer $limit, string $search, integer $depth, array $sortBy = [], boolean $systemCollections = true ) : Collection[]
$locale string the locale which the collection should be return
$offset integer
$limit integer
$search string
$depth integer maximum depth for query
$sortBy array
$systemCollections boolean Whether or not system collectino should be included in the result
return Sulu\Bundle\MediaBundle\Api\Collection[]
    public function getTree($locale, $offset, $limit, $search, $depth = 0, $sortBy = [], $systemCollections = true);