Copied!

ItemClickEventData

ItemClickEventData.php : 14
Read-only
Final

Base class for tracking event data with common parameter building logic.

Methods

public__construct()

ItemClickEventData.php : 16
public __construct(string $productId, string $moduleName, string $redirectUrl)

Parameters

Name Type Default value Description
$productId string - -
$moduleName string - -
$redirectUrl string - -

publicgetEventType()

ItemClickEventData.php : 22
public getEventType() : EventType

Return values

EventType

publicgetTemplateHint()

ItemClickEventData.php : 40

Returns optional template hint for special rendering needs.

public getTemplateHint() : string

Return values

string

publictoArray()

ItemClickEventData.php : 27

Returns Raptor tracking parameters.

public toArray() : array<string, mixed>

Return values

array<string, mixed>

protectedbuildParameters()

AbstractEventData.php : 24
protected buildParameters(array<string, mixed> $required[, array<string, mixed> $optional = [] ]) : array<string, mixed>

Parameters

Name Type Default value Description
$required array<string, mixed> - -
$optional array<string, mixed> [] -

Return values

array<string, mixed>