src/Sulu/Bundle/ContactBundle/Contact/ContactManager.php
public function getByIds($ids, $locale)
    {
        if (!is_array($ids) || 0 === count($ids)) {
            return [];
        }

        $contacts = $this->contactRepository->findByIds($ids);

        return array_map(
            function($contact) use ($locale) {
                return $this->getApiObject($contact, $locale);
            },
            $contacts
        );
    }
public function getByIds($ids, $locale)
    {
        if (!is_array($ids) || 0 === count($ids)) {
            return [];
        }

        $contacts = $this->contactRepository->findByIds($ids);

        return array_map(
            function($contact) use ($locale) {
                return $this->getApiObject($contact, $locale);
            },
            $contacts
        );
    }
public function getByIds ( $ ids , $ locale ) { if ( ! is_array ( $ ids ) || 0 === count ( $ ids ) ) { return [ ] ; } $ contacts = $ this -> contactRepository -> findByIds ( $ ids ) ; return array_map ( function ( $ contact ) use ( $ locale ) { return $ this -> getApiObject ( $ contact , $ locale ) ; } , $ contacts ) ; }
Returns contact entities by ids.

@param $ids
@param $locale

@return mixed
Returns contact entities by ids .