src/Phlexible/Bundle/SiterootBundle/Entity/Siteroot.php
public function getDefaultUrl($language = null)
    {
        foreach ($this->urls as $url) {
            if ($url->isDefault()) {
                return $url;
            }
        }

        return null;
    }
public function getDefaultUrl($language = null)
    {
        foreach ($this->urls as $url) {
            if ($url->isDefault()) {
                return $url;
            }
        }

        return null;
    }
public function getDefaultUrl ( $ language = null ) { foreach ( $ this -> urls as $ url ) { if ( $ url -> isDefault ( ) ) { return $ url ; } } return null ; }
Return the default url.

@param string $language

@return Url
Return the default url .