Sulu\Bundle\ContactBundle\Contact\AccountManager::getApiObject PHP Метод

getApiObject() защищенный Метод

Takes a account entity and a locale and returns the api object.
protected getApiObject ( Sulu\Bundle\ContactBundle\Entity\Account $account, string $locale ) : Account
$account Sulu\Bundle\ContactBundle\Entity\Account
$locale string
Результат Sulu\Bundle\ContactBundle\Api\Account
    protected function getApiObject($account, $locale)
    {
        $apiObject = $this->accountFactory->createApiEntity($account, $locale);
        if ($account->getLogo()) {
            $apiLogo = $this->mediaManager->getById($account->getLogo()->getId(), $locale);
            $apiObject->setLogo($apiLogo);
        }
        return $apiObject;
    }