src/Sulu/Bundle/PageBundle/Markup/Link/PageLinkProvider.php
protected function getLinkItem(Content $content, $locale, $scheme)
    {
        $published = !empty($content->getPropertyWithDefault('published'));
        $url = $this->webspaceManager->findUrlByResourceLocator(
            $content->getUrl(),
            $this->environment,
            $locale,
            $content->getWebspaceKey(),
            null,
            $scheme
        );

        return new LinkItem($content->getId(), $content->getPropertyWithDefault('title'), $url, $published);
    }
protected function getLinkItem(Content $content, $locale, $scheme)
    {
        $published = !empty($content->getPropertyWithDefault('published'));
        $url = $this->webspaceManager->findUrlByResourceLocator(
            $content->getUrl(),
            $this->environment,
            $locale,
            $content->getWebspaceKey(),
            null,
            $scheme
        );

        return new LinkItem($content->getId(), $content->getPropertyWithDefault('title'), $url, $published);
    }
protected function getLinkItem ( Content $ content , $ locale , $ scheme ) { $ published = ! empty ( $ content -> getPropertyWithDefault ( 'published' ) ) ; $ url = $ this -> webspaceManager -> findUrlByResourceLocator ( $ content -> getUrl ( ) , $ this -> environment , $ locale , $ content -> getWebspaceKey ( ) , null , $ scheme ) ; return new LinkItem ( $ content -> getId ( ) , $ content -> getPropertyWithDefault ( 'title' ) , $ url , $ published ) ; }
Returns new link item.

@param Content $content
@param string $locale
@param string $scheme

@return LinkItem
Returns new link item .