Copied!

BrandContextServiceInterface

BrandContextServiceInterface.php : 24
Interface

Methods

publiccreateBrandContext()

BrandContextServiceInterface.php : 74
public createBrandContext(BrandContextCreateStruct $createStruct) : BrandContextInterface

Parameters

Name Type Default value Description
$createStruct BrandContextCreateStruct - -

Return values

BrandContextInterface

Tags
Throws
ValidationFailedException
Throws
NotFoundException
Throws
InvalidArgumentException
Throws
BadStateException
Throws
InvalidArgumentValue
Throws
UnauthorizedException

publicdeleteBrandContext()

BrandContextServiceInterface.php : 96
public deleteBrandContext(BrandContextInterface $brandContext) : void

Parameters

Name Type Default value Description
$brandContext BrandContextInterface - -
Tags
Throws
InvalidArgumentException
Throws
NotFoundException
Throws
UnauthorizedException

publicdeleteBrandContextTranslation()

BrandContextServiceInterface.php : 102
public deleteBrandContextTranslation(BrandContextInterface $brandContext, string $languageCode) : void

Parameters

Name Type Default value Description
$brandContext BrandContextInterface - -
$languageCode string - -
Tags
Throws
NotFoundException
Throws
UnauthorizedException

publicfindBrandContexts()

BrandContextServiceInterface.php : 45
public findBrandContexts([BrandContextQuery|null $query = null ][, iterable<string|int, string>|null $prioritizedLanguages = null ]) : BrandContextCollectionInterface

Parameters

Name Type Default value Description
$query BrandContextQuery|null null -
$prioritizedLanguages iterable<string|int, string>|null null -

Return values

BrandContextCollectionInterface

Tags
Throws
InvalidArgumentException
Throws
ValidationFailedException
Throws
NotFoundException

publicgetBrandContext()

BrandContextServiceInterface.php : 33
public getBrandContext(string $identifier[, iterable<string|int, string>|null $prioritizedLanguages = null ]) : BrandContextInterface

Parameters

Name Type Default value Description
$identifier string - -
$prioritizedLanguages iterable<string|int, string>|null null -

Return values

BrandContextInterface

Tags
Throws
InvalidArgumentException
Throws
NotFoundException
Throws
UnauthorizedException

publicgetBrandContextsBySiteAccess()

BrandContextServiceInterface.php : 61

Returns summaries of Brand Contexts assigned to the given site accesses and visible to the current user, keyed by site access identifier.

public getBrandContextsBySiteAccess(array<string|int, string> $siteAccessIdentifiers[, iterable<string|int, string>|null $prioritizedLanguages = null ]) : array<string, BrandContextSummary>

Parameters

Name Type Default value Description
$siteAccessIdentifiers array<string|int, string> - -
$prioritizedLanguages iterable<string|int, string>|null null -

Return values

array<string, BrandContextSummary>

Tags
Throws
InvalidArgumentValue

publicnewBrandContextCreateStruct()

BrandContextServiceInterface.php : 76
public newBrandContextCreateStruct(string $identifier) : BrandContextCreateStruct

Parameters

Name Type Default value Description
$identifier string - -

Return values

BrandContextCreateStruct

publicnewBrandContextUpdateStruct()

BrandContextServiceInterface.php : 78
public newBrandContextUpdateStruct(BrandContextInterface $brandContext) : BrandContextUpdateStruct

Parameters

Name Type Default value Description
$brandContext BrandContextInterface - -

Return values

BrandContextUpdateStruct

publicupdateBrandContext()

BrandContextServiceInterface.php : 86
public updateBrandContext(BrandContextInterface $brandContext, BrandContextUpdateStruct $updateStruct) : BrandContextInterface

Parameters

Name Type Default value Description
$brandContext BrandContextInterface - -
$updateStruct BrandContextUpdateStruct - -

Return values

BrandContextInterface

Tags
Throws
InvalidArgumentException
Throws
NotFoundException
Throws
ValidationFailedException
Throws
UnauthorizedException