src/Sulu/Bundle/CategoryBundle/Category/CategoryManager.php
public function getApiObjects($entities, $locale)
    {
        return array_map(
            function($entity) use ($locale) {
                return $this->getApiObject($entity, $locale);
            },
            $entities
        );
    }
public function getApiObjects($entities, $locale)
    {
        return array_map(
            function($entity) use ($locale) {
                return $this->getApiObject($entity, $locale);
            },
            $entities
        );
    }
public function getApiObjects ( $ entities , $ locale ) { return array_map ( function ( $ entity ) use ( $ locale ) { return $ this -> getApiObject ( $ entity , $ locale ) ; } , $ entities ) ; }
Returns an array of API-Objects for a given array of category-entities.
The returned array can contain null-values, if the given entities are not valid.

@param $entities
@param $locale

@return array
Returns an array of API - Objects for a given array of category - entities . The returned array can contain null - values if the given entities are not valid .