src/Sulu/Bundle/ContactBundle/Contact/AbstractContactManager.php
public function setMainUrl($entity)
    {
        // set main to first entry or to null
        if ($entity->getUrls()->isEmpty()) {
            $entity->setMainUrl(null);
        } else {
            $entity->setMainUrl($entity->getUrls()->first()->getUrl());
        }
    }
public function setMainUrl($entity)
    {
        // set main to first entry or to null
        if ($entity->getUrls()->isEmpty()) {
            $entity->setMainUrl(null);
        } else {
            $entity->setMainUrl($entity->getUrls()->first()->getUrl());
        }
    }
public function setMainUrl ( $ entity ) { // set main to first entry or to null if ( $ entity -> getUrls ( ) -> isEmpty ( ) ) { $ entity -> setMainUrl ( null ) ; } else { $ entity -> setMainUrl ( $ entity -> getUrls ( ) -> first ( ) -> getUrl ( ) ) ; } }
sets Entity's Main-Url.

@param Contact|AccountInterface $entity
sets Entity s Main - Url .