Copied!

BrandContextAiContextResolverInterface

BrandContextAiContextResolverInterface.php : 19
Interface

Resolves the AI Context (values of attribute groups marked as AI system groups) of the Brand Context assigned to a site access.

Methods

publicresolveForCurrentSiteContext()

BrandContextAiContextResolverInterface.php : 28

Resolves the AI Context for the current site context, see {@see SiteContextServiceInterface::getCurrentContext()}.

public resolveForCurrentSiteContext([string|null $languageCode = null ]) : BrandContextAiContext|null

Parameters

Name Type Default value Description
$languageCode string|null null -

Return values

BrandContextAiContext|null

Tags
Throws
InvalidArgumentException
Throws
NotFoundException

publicresolveForSiteAccess()

BrandContextAiContextResolverInterface.php : 34
public resolveForSiteAccess(string $siteAccessName[, string|null $languageCode = null ]) : BrandContextAiContext|null

Parameters

Name Type Default value Description
$siteAccessName string - -
$languageCode string|null null -

Return values

BrandContextAiContext|null

Tags
Throws
InvalidArgumentException
Throws
NotFoundException