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

        $accounts = $this->accountRepository->findByIds($ids);

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

        $accounts = $this->accountRepository->findByIds($ids);

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

@param array $ids
@param string $locale

@return array
Returns account entities by ids .