abstract class LinkManagerBase (View source)

Defines an abstract base-class for HAL link manager objects.

Properties

protected string $linkDomain

Link domain used for type links URIs.

protected ConfigFactoryInterface $configFactory

Config factory service.

protected RequestStack $requestStack

The request stack.

Methods

setLinkDomain($domain)

{@inheritdoc}

string
getLinkDomain(array $context = [])

Gets the link domain.

Details

setLinkDomain($domain)

{@inheritdoc}

Parameters

$domain

protected string getLinkDomain(array $context = [])

Gets the link domain.

Parameters

array $context

Normalization/serialization context.

Return Value

string

The link domain.

See also

\Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()
\Symfony\Component\Serializer\SerializerInterface::serialize()
CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY