src/Sulu/Bundle/MediaBundle/Collection/Manager/CollectionManager.php
protected function setBreadcrumbToCollection(Collection $collection, $locale, $breadcrumbEntities)
    {
        $breadcrumbApiEntities = [];
        foreach ($breadcrumbEntities as $entity) {
            $breadcrumbApiEntities[] = $this->getApiEntity($entity, $locale);
        }
        $collection->setBreadcrumb($breadcrumbApiEntities);

        return $collection;
    }
protected function setBreadcrumbToCollection(Collection $collection, $locale, $breadcrumbEntities)
    {
        $breadcrumbApiEntities = [];
        foreach ($breadcrumbEntities as $entity) {
            $breadcrumbApiEntities[] = $this->getApiEntity($entity, $locale);
        }
        $collection->setBreadcrumb($breadcrumbApiEntities);

        return $collection;
    }
protected function setBreadcrumbToCollection ( Collection $ collection , $ locale , $ breadcrumbEntities ) { $ breadcrumbApiEntities = [ ] ; foreach ( $ breadcrumbEntities as $ entity ) { $ breadcrumbApiEntities [ ] = $ this -> getApiEntity ( $ entity , $ locale ) ; } $ collection -> setBreadcrumb ( $ breadcrumbApiEntities ) ; return $ collection ; }
Sets the given breadcrumb entities as breadcrum on the given collection.

@return Collection
Sets the given breadcrumb entities as breadcrum on the given collection .