public static function buildStreamTag(string
$id): string
{ return 'product-stream-' .
$id;
} /**
* @param string[] $areas
*/
public function getSalesChannelContextHash(SalesChannelContext
$context, array
$areas =
[]): string
{ $ruleIds =
$context->
getRuleIdsByAreas($areas);
return md5((string) json_encode([ $context->
getSalesChannelId(),
$context->
getDomainId(),
$context->
getLanguageIdChain(),
$context->
getVersionId(),
$context->
getCurrencyId(),
$context->
getTaxState(),
$context->
getItemRounding(),
$ruleIds,
], \JSON_THROW_ON_ERROR
));
}