PHP Class Sulu\Bundle\ContentBundle\Markup\Link\PageLinkProvider

Inheritance: implements Sulu\Bundle\ContentBundle\Markup\Link\LinkProviderInterface
Show file Open project: sulu/sulu

Protected Properties

Property Type Description
$contentRepository Sulu\Component\Content\Repository\ContentRepositoryInterface
$environment string
$requestStack Symfony\Component\HttpFoundation\RequestStack
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface

Public Methods

Method Description
__construct ( Sulu\Component\Content\Repository\ContentRepositoryInterface $contentRepository, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Symfony\Component\HttpFoundation\RequestStack $requestStack, string $environment )
getConfiguration ( )
preload ( array $hrefs, $locale, $published = true )

Protected Methods

Method Description
getLinkItem ( Content $content, string $locale, string $scheme ) : LinkItem Returns new link item.

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Repository\ContentRepositoryInterface $contentRepository, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Symfony\Component\HttpFoundation\RequestStack $requestStack, string $environment )
$contentRepository Sulu\Component\Content\Repository\ContentRepositoryInterface
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack
$environment string

getConfiguration() public method

public getConfiguration ( )

getLinkItem() protected method

Returns new link item.
protected getLinkItem ( Content $content, string $locale, string $scheme ) : LinkItem
$content Sulu\Component\Content\Repository\Content
$locale string
$scheme string
return LinkItem

preload() public method

public preload ( array $hrefs, $locale, $published = true )
$hrefs array

Property Details

$contentRepository protected property

protected ContentRepositoryInterface,Sulu\Component\Content\Repository $contentRepository
return Sulu\Component\Content\Repository\ContentRepositoryInterface

$environment protected property

protected string $environment
return string

$requestStack protected property

protected RequestStack,Symfony\Component\HttpFoundation $requestStack
return Symfony\Component\HttpFoundation\RequestStack

$webspaceManager protected property

protected WebspaceManagerInterface,Sulu\Component\Webspace\Manager $webspaceManager
return Sulu\Component\Webspace\Manager\WebspaceManagerInterface