src/Sulu/Bundle/ContactBundle/Contact/AbstractContactManager.php
public function getDeliveryAddress($entity, $force = false)
    {
        /* @var Address $address */
        $conditionCallback = function($address) {
            return $address->getDeliveryAddress();
        };

        return $this->getAddressByCondition($entity, $conditionCallback, $force);
    }
public function getDeliveryAddress($entity, $force = false)
    {
        /* @var Address $address */
        $conditionCallback = function($address) {
            return $address->getDeliveryAddress();
        };

        return $this->getAddressByCondition($entity, $conditionCallback, $force);
    }
public function getDeliveryAddress ( $ entity , $ force = false ) { /* @var Address $address */ $ conditionCallback = function ( $ address ) { return $ address -> getDeliveryAddress ( ) ; } ; return $ this -> getAddressByCondition ( $ entity , $ conditionCallback , $ force ) ; }
Returns the delivery address.

@param AccountInterface|Contact $entity
@param bool $force Forces function to return an address if any address is defined
if no delivery address is defined it will first return the main address then any

@return mixed
Returns the delivery address .